-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Scheduler] Add capability to skip missed periodic tasks, only the last schedule will be called #58001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering about the naming. This class doesn't use the set*
convention, also is "heap" clear enough?
Proposals:
- skipMissedRuns(bool) / shouldSkipMissedRuns(): bool
- skipMissedTasks(bool) / shouldSkipMissedTasks(): bool
I agree at 99% but don't you thinkk skipMissedRuns make people think that there is not more than one? What do you think to groupMissedRuns(bool) / shouldGroupMissedRuns(): bool |
processLastMissedRun / shouldProcessLastMissedRun ? |
…st schedule will be called
70076a9
to
9ae569b
Compare
Thank you @eltharin. |
…, only the last schedule will be called (eltharin) This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [Scheduler] Add capability to skip missed periodic tasks, only the last schedule will be called Add documentation for my PR symfony/symfony#58001, Commits ------- 41f1786 [Scheduler] Add capability to skip missed periodic tasks, only the last schedule will be called
without this PR our app got nuked, twice :( BUMP your app ASAP this should've been a hotfix |
i should add; without this PR you are severely prone in case of redis failure |
Allow a Schedule to run only once reccuring messages when a worker break (with stateful enalbed)