Skip to content

[Bug]: Method upsertJobScheduler does not trigger the new scheduling immediately #3539

@marcolubian

Description

@marcolubian

Version

v5.63.0

Platform

NodeJS

What happened?

I'm using version v7.40.0 of BullMQ PRO, that is using version v5.63.0 of bullmq.

When I update an existing scheduled job using queue.upsertJobScheduler and change the "every" interval (for example, from "every 10 seconds" to "every 2 seconds"), the new schedule is applied, but the job only starts running with the new interval after the previous schedule time has elapsed. In other words, the job does not reschedule immediately after the update, but only after the original schedule interval has finished.

How can I force the new scheduling to be taken into account immediately? I thought that this issue could be related to #3500 but it seems fixed from v5.62.2...

What am I doing wrong? What is the right way to achieve what I need?

How to reproduce.

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions