-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Backport] Added function to check against running/pending/successful cron tasks #23439
[Backport] Added function to check against running/pending/successful cron tasks #23439
Conversation
Added type missing for static call Updated static code tests again
Hi @ihor-sviziev. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @VladimirZaets, thank you for the review.
|
✔️ QA Passed |
Hi @ihor-sviziev, thank you for your contribution! |
…ng/successful cron tasks #23439
Original Pull Request
#23312
This PR adds function to filter all correctly run, running or pending cron tasks.
Description (*)
If a cron has just been run, cache is cleared and the cron processed again, then scheduled tasks reschedule for the same time.
Fixed Issues (if relevant)
Manual testing scenarios (*)
When not updated, running
bin/magento cron:run && bin/magento cache:flush
repeatedly will cause tasks that have completed to be rescheduled - leading to many tasks repeating. This should no longer happen.