Skip to content
Discussion options

You must be logged in to vote

Fix released in v2.6.113

After a deep investigation, we identified the root cause — two interacting bugs in code paths that previous fixes had not covered:

Bug 1: Lock expiration re-queued cron jobs

processExpiredLockInner in lockManager.ts treated cron jobs with preventOverlap the same as regular jobs. During graceful shutdown, _doClose() stops heartbeats immediately, so if the job takes longer than the lock TTL (30s default), the lock expires and the cron job gets re-queued — sitting in the waiting state for the next worker to pull.

Fix: Cron jobs (identified by uniqueKey.startsWith("cron:")) are now discarded on lock expiration instead of re-queued. The cron scheduler will re-create th…

Replies: 52 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@arthurvanl
Comment options

@arthurvanl
Comment options

Comment options

You must be logged in to vote
1 reply
@arthurvanl
Comment options

Answer selected by arthurvanl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #73 on April 03, 2026 13:25.