[18.0][PORT] queue_job: remove dead jobs requeuer cron and automatically requeue dead jobs
FW port of #748
Hi @guewen, some modules you are maintaining are being modified, check this out!
@sbidoul looks like you have to rewrite this to use savepoints?
I'm note sure it's possible to test that with savepoints, since we test database locks.
@AnizR
@hbrunn, I came up with the solution of loading test queue.job records within demo.
What do you think about it?
Setting as draft. There is a conflicts and the tests need some rework.
I reworked the tests and decided to isolate the tests in test_queue_job.
Moreover, I managed to remove the .commit() calls.
This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
/ocabot merge major
On my way to merge this fine PR! Prepared branch 18.0-ocabot-merge-pr-749-by-sbidoul-bump-major, awaiting test results.
Congratulations, your PR was merged at c6f5ba82859f0913ca91b67b9d72601961a8a904. Thanks a lot for contributing to OCA. ❤️