-
-
Notifications
You must be signed in to change notification settings - Fork 532
[17.0][PORT] queue_job: remove dead jobs requeuer cron and automatically requeue dead jobs #748
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
…eue jobs in timeout [IMP] queue_job: increment 'retry' when re-queuing job that have been killed
A model is better than a manually managed table as it will protect the table from deletion by database_cleanup.
|
Hi @guewen, |
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.
Thanks for the port forward!
No remarks to do regarding the logic, it still works: queue_job isn't different between v16 and v17.
Small question: Shouldn't we need to change the module version since we are adding a migration script?
I was thinking to merge with a minor bump, but changing it explicitly is safer. Done. |
6032984 to
ca5fba5
Compare
AnizR
left a comment
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.
Ok, nice. Everything looks good to me now 👍
|
This PR has the |
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at f327ed0. Thanks a lot for contributing to OCA. ❤️ |
| state=( | ||
| CASE | ||
| WHEN | ||
| max_retries IS NOT NULL AND |
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.
Maybe there's a problem here? max_retries can be 0 and is well documented that it has to retry forever...
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.
Possibly, indeed. cc/ @AnizR
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.
FW port of #716