-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#23054 #24789
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
magento/magento2#23054 #24789
Conversation
main business logic developed: saving host and pid when process start running, checking running jobs for host and PID @todo: check starting time match if PID available on HOST
also some bits'n'bobs for complaint coding
also some modification in database and function scopes
and some minor bits
Make sure that the additotion will not break the cron system also some minor bit
due misinterpret original output
and some minor change to be M2 compliant
reconsider current code structure using other way to decide if process still running
Hi @mamsincl. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Conflicts: app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php
Hello @magento-engcom-team, @buskamuza and @tariqjawed83 , I do not know If you ever checking tests results if any is failing, but - since I not even touch it - Unit Tests build errors came from original branch. The failing of Static Tests build is coming from my additions, the reasons are:
|
Hi @magento-engcom-team @magento-cicd2, Can you review my comments and react as well, please. Thanks, |
Any update on this one please? |
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.
Hi @mamsincl, thanks for your contribution and sorry for the delay in processing it.
I'm not sure if cleaning of orphan/stale jobs from the cronjob schedule table is a good idea, we are basically masking the problem, and by removing that probably the developer won't even be aware that there could be a problem. Usually, this kind of issue happens when something needs to be fixed, so I guess it would be better something that improves developer visibility on such problems.
I'm not sure if you have seen this but we have this proposal https://github.com/magento/architecture/pull/171/files, which has really nice ideas on how to make cronjob more reliable, if you are interested in this we could start some discussion on how to start such implementation.
Please let me know your thoughts.
Thanks.
Closing this PR due to contributor inactivity, if you still want to work on this please feel free to reopen it. Thank you! |
Hi @mamsincl, thank you for your contribution! |
Description (*)
Extending Magento/Cron module with functionality of being able to close the orphan/stale running cron tasks (schedules) which been started before, but somehow stopped running
Fixed Issues (if relevant)
Manual testing scenarios (*)
preconditions:
(scenario a)
(scenario b)
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-hostname.html
Questions or comments
If you using multiple instances or in cloud environment, be sure that you have set up the hostname(s) of your instance(s) (eg. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-hostname.html) in prior to avoid false negative match if you checking the hostnames as well
Contribution checklist (*)