Skip to content

Conversation

The automatic dead jobs requeuer now works out of the box.
@OCA-git-bot
Copy link
Contributor

Hi @guewen,
some modules you are maintaining are being modified, check this out!

@sbidoul sbidoul added this to the 19.0 milestone Jan 4, 2026
florentx and others added 7 commits January 4, 2026 12:52
@sbidoul sbidoul force-pushed the oca-port-queue_job-18.0-to-19.0-152346 branch 4 times, most recently from 3c71eac to 44c39fb Compare January 4, 2026 12:25
In this commit we cleanly separate the job acquisition (i.e. verifying the job is in the exepected state, marking it started and locking it) from job execution.

We also avoid trying to start the job if it is already locked by using SKIP LOCKED
and exiting early. Indeed in such situations the job is likely already being handled by another worker so there is no point trying to start it, so we exit early
and let it be handled either by the other worker or the dead job requeuer.
Extract the logic to run one job out of the /queue_job/runjob route.
Towards making this logic reusable in other job executors.
@sbidoul sbidoul force-pushed the oca-port-queue_job-18.0-to-19.0-152346 branch from 44c39fb to d2dc621 Compare January 4, 2026 12:31
@sbidoul sbidoul marked this pull request as ready for review January 4, 2026 12:43
Since we are not going to delete records nor modify foreign keys,
we can take a weaker lock.
@sbidoul
Copy link
Member Author

sbidoul commented Jan 8, 2026

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-872-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit c6c9349 into OCA:19.0 Jan 8, 2026
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at d2a8e90. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants