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

[Bug]: Repeatable job is not fired off immediately after it's removed and added back #2405

Open
1 task done
raymondfeng opened this issue Jan 30, 2024 · 3 comments · May be fixed by #2944
Open
1 task done

[Bug]: Repeatable job is not fired off immediately after it's removed and added back #2405

raymondfeng opened this issue Jan 30, 2024 · 3 comments · May be fixed by #2944
Assignees
Labels
bug Something isn't working

Comments

@raymondfeng
Copy link

Version

v4.14.0

Platform

NodeJS

What happened?

Hi, I noticed a strange behavior. We have a repeatable job. If we remove it or drain the queue for delayed jobs and add it back with immediately=true , the workers are not fired off.

How to reproduce.

  1. Create a queue and add a repeatable job with immediately=true option
  2. Create worker for the queue to handle the repeatable job
  3. Remove the job or drain the queue
  4. Add the repeatable job back to the queue with immediately=true option

The worker is not fired off immediately.

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct
@raymondfeng raymondfeng added the bug Something isn't working label Jan 30, 2024
@raymondfeng raymondfeng changed the title [Bug]: [Bug]: Repeatable job is not fired off immediately after it's removed and added back Jan 30, 2024
@manast
Copy link
Contributor

manast commented Jan 30, 2024

Could you please produce the actual source code that reproduces the issue?

@fabianboerner
Copy link

fabianboerner commented Sep 3, 2024

For use this issue occured when the original repeated job was still in completed and not completely removed from redis. If you remove the delayed job after the original it will not add another job.

@manast
Copy link
Contributor

manast commented Nov 24, 2024

This is probably fixed with the new upsertJobScheduler method. @fgozdz could you verify it indeed is resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants