You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have successfull recurrent jobs where runCount matches finishedCount. resumeOnRestart changes me nextRunAt and ALL executed job are executed again.
$or: [{ $expr: { $eq: ['$runCount', '$finishedCount'] } }, { lastFinishedAt: { $exists: false } }],
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Description
This query updates wrongly already processed jobs:
this._collection
.updateMany(
{
$or: [
{
lockedAt: { $exists: true },
nextRunAt: { $ne: null },
$or: [{ $expr: { $eq: ['$runCount', '$finishedCount'] } }, { lastFinishedAt: { $exists: false } }],
},
{
lockedAt: { $exists: false },
lastFinishedAt: { $exists: false },
nextRunAt: { $lte: now, $ne: null },
},
],
},
{
$unset: { lockedAt: undefined, lastModifiedBy: undefined, lastRunAt: undefined },
$set: { nextRunAt: now },
}
)
I have successfull recurrent jobs where runCount matches finishedCount. resumeOnRestart changes me nextRunAt and ALL executed job are executed again.
$or: [{ $expr: { $eq: ['$runCount', '$finishedCount'] } }, { lastFinishedAt: { $exists: false } }],
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: