-
Notifications
You must be signed in to change notification settings - Fork 511
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version
5.61.0
Platform
NodeJS
What happened?
upsertJobScheduler does not update existing job
How to reproduce.
await dailyArchiveManager.getQueue().upsertJobScheduler(
'daily-archive-recurring',
{
pattern: '*/1 * * * *',
offset: 0,
tz: 'America/New_York',
},
{
opts: {
attempts: 3,
removeOnFail: true,
repeatJobKey: 'daily-archive-recurring',
},
data: {
timestamp: new Date().toISOString(),
triggeredBy: 'schedule',
// targetDate will be calculated in the processor
},
name: 'daily-archive-task',
},
);
Then change the pattern.
await dailyArchiveManager.getQueue().upsertJobScheduler(
'daily-archive-recurring',
{
pattern: '* 8 * * *', // <<<<<<<<<<
offset: 0,
tz: 'America/New_York',
},
{
opts: {
attempts: 3,
removeOnFail: true,
repeatJobKey: 'daily-archive-recurring',
},
data: {
timestamp: new Date().toISOString(),
triggeredBy: 'schedule',
// targetDate will be calculated in the processor
},
name: 'daily-archive-task',
},
);
I can see that the data is updated through the Bull dashboard, but the schedule still isn't updated until the existing task is run.

Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working