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
Recurring jobs sometimes run immediately when added to queue #306
Comments
Picture this: time is divided in slots separated by your repeating interval, the slots are fixed, they need to be so that all workers are in consensus on when the next repeatable job is supposed to be repeated. If you happen to add the recurring job very close to the next slot it will be executed directly. |
btw, this is also the way standard cron jobs works AFAIK. |
Thanks, @manast . I somehow missed your timely response!
If it is currently 12pm, and I schedule a job for 2am every day, that would not count as "very close to the next slot", right? |
@sbleon no, that would not count. |
Closing as we support using immediately param |
Sometimes, when I add recurring jobs to a queue, starting with a completely empty Redis, an instance of the job is immediately executed. Has anyone else seen this happen?
The text was updated successfully, but these errors were encountered: