Skip to content

Conversation

@hoangtrann
Copy link

This pr add a secondary attempt to requeue "orphaned jobs" where it stucks in enqueued, not yet make it to queue_job_lock and selecting jobs after db initialization also misses it. Even a server restart would not unblock the job.

This is most likely due to server being shutdown or crash during job enqueue. Manually requeue the job on UI make everything running again.

@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 18.0 milestone Nov 22, 2025
Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I kind of remember we had thought about this case when doing the original implementation with @AnizR but maybe it got lost in the various iterations we did.

@sbidoul sbidoul changed the title [IMP] queue_job: requeue orphaned jobs [18.0][IMP] queue_job: requeue orphaned jobs Nov 22, 2025
@hoangtrann hoangtrann force-pushed the feat-requeue-orphaned-jobs branch from 8b82098 to 84a3fca Compare November 22, 2025 21:43
@AnizR
Copy link
Contributor

AnizR commented Nov 26, 2025

Good catch! I kind of remember we had thought about this case when doing the original implementation with @AnizR but maybe it got lost in the various iterations we did.

In deed, we talked about it but I think that it got lost.

Thanks for this patch, I'll review it within the week.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants