Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeatable Job Stuck in Queue Due to Past Timestamp Update #3037

Open
divyesh565 opened this issue Jan 30, 2025 · 3 comments
Open

Repeatable Job Stuck in Queue Due to Past Timestamp Update #3037

divyesh565 opened this issue Jan 30, 2025 · 3 comments

Comments

@divyesh565
Copy link

bullmq version - 5.1.5

For a repeatable job, what could be the reason that its next job timestamp is being updated to a past time, causing the job to never execute and remain in the queue indefinitely?

@manast
Copy link
Contributor

manast commented Jan 30, 2025

If the timestamp is in a past time the delayed time will be zero and it will be executed directly, so we need more context to understand your case. Btw, I would upgrade to latest BullMQ version also.

@divyesh565
Copy link
Author

We are inserting a job into the queue to repeat every 90 seconds. After some processing, we remove the job by its key. However, at the end of the day, when we check the queue in Taskforce, we see that there are X jobs with past timestamps for the 'next run at' field.

@manast
Copy link
Contributor

manast commented Jan 30, 2025

We would need a test case to understand and to analize your issue in depth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants