Replies: 1 comment 6 replies
-
Do you have any code that reproduces the issue? we had a similar issue some time ago but has been fixed. Are you sure you are using the latest version when this happens? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
we are using bullmq for quite some time now. Recently we started having the issue that in some queues we had multiple delayed jobs. this queue just has 1 scheduler creating 1 job every 10 seconds. The job runs for around 100-250ms. How can it happen that there are multiple delayed jobs in our queue? Even considering that the job >may< run for longer than 10 seconds (as there is only 1 worker on this queue) it just seems like once there is a second job in "delayed" that we have 2 tasks being executed and recreated by the scheduler instead of just 1.
We double checked only having 1 scheduler. Being on the latest version of bullmq etc. but did not have any success fixing it. Restarting our cluster seems to have high probability to have this "issue" shown up.
We are using upsertJobScheduler to setup our queues with unique job name and we double checked that there is no second scheduler.
So our thinking is... that we fundamentally use repeating tasks in a wrong way. Anyone can help with this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions