Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Scheduled jobs in the Pulse system are being incorrectly resumed after restart when their lockedAt field is set to null. #79

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pulse/resume-on-restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const resumeOnRestart: ResumeOnRestartMethod = function (this: Pulse, res
{
$or: [
{
lockedAt: { $exists: true },
lockedAt: { $ne: null },
nextRunAt: { $ne: null },
$or: [{ $expr: { $eq: ['$runCount', '$finishedCount'] } }, { lastFinishedAt: { $exists: false } }],
},
Expand Down
Loading