SIMS icon indicating copy to clipboard operation
SIMS copied to clipboard

Bull Scheduler increments the next scheduled job when manually promoted

Open dheepak-aot opened this issue 1 year ago • 0 comments

Describe the task When a scheduled job of the scheduler(Bull Queue) is manually promoted, then the next schedule is automatically incremented .

This seems to be the default behavior of the bull framework.

But our expectation is that manually promoting the job is to handle something on a manual way if there is a need and it should not affect the regular schedules.

Here is an example:

A job is scheduled to run at AUG-30 at 8:AM (Current date being AUG-29 2:00 PM). image.png

When I manually run the scheduler job outside it's regular schedule, then the scheduler skips it's next regular schedule and considers the 2nd next schedule as it's next schedule.

image.png

Acceptance Criteria

  • [ ] Investigate if there is any setting in bull that will not modify the next schedule when manually promoted.
  • [ ] If that is not possible, identify how scheduler jobs can be manually run without using the promote option. (May be a different front-end application other than Bull dashboard could be a potential solution)

** Potential Solution(May not be the final solution) ** From the version 5.18.0 of the Bull Dashboard UI, they have introduced the feature of manually adding a job to a Queue through the UI. To get this feature, we just need to update the bull-dashboard to the latest version. Please also note that, we need little investigation on how to use this add job in an appropriate way.

https://github.com/felixmosh/bull-board/releases/tag/v5.18.0

image.png

dheepak-aot avatar Aug 29 '24 16:08 dheepak-aot