Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Laravel's ->withoutOverlapping() support #71

Locked Unanswered
Tarpsvo asked this question in General
Discussion options

Hey guys!

I just wanted to ask real quick before I dig deeper in to the issue - the cloud tasks generated by this package don't support 'withoutOverlapping' do they? At least it does not seem to work for me.

I kind of need it due to some jobs that should only be maximum of once per cron interval (especially when one job happens to take longer than one cron interval).

I was thinking of creating a cache based boolean lock for the dispatcher, but it seems kind of silly and hacky.

I haven't looked too much into how the ->withoutOverlapping() and existing job detection works right now, so I thought I'd just ask if it's something the developers have already looked into and deemed possible or impossible with cloud tasks. Or maybe the cache based boolean lock really is the way to go?

Thanks!

---- UPDATE

Seems like implementing Laravel's "ShouldBeUnique" interface essentially provides me with the exact same cache based boolean lock I was looking for. Seems like that's the solution for me. Thanks!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /