-
Notifications
You must be signed in to change notification settings - Fork 13
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
Does the resumeOnRestart
flag work only in one direction?
#47
Comments
@dev-folks |
@dev-folks To achieve the scenario you want, you can simply use pulse.every('*/30 * * * *') This guarantees a 30-minute interval, and it won't run if it doesn't match the exact time.(This is a matter of whether the repetition interval is relative or absolute.) If implemented this way, If the issue isn't resolved, please share the code you've written with me! |
@code-xhyun I'm using cron syntax. For example However, if I turn off the server at |
@code-xhyun //It’s clear that it’s not working quite right because it doesn’t recalculate the next time based on the cron expression—it just prevents the job from running at the wrong time. |
@dev-folks
|
@code-xhyun As far as I understand, the job (whether it's on time or overdue) will still be passed to the Am I wrong? |
@dev-folks |
@dev-folks |
Thanks! It’s a really useful tool. Here are my logs:
|
🎉 This Issue resolved and included in version 1.6.2 🎉 The release is available on: |
It works great, |
Hello!
I saw this issue
And I am trying to achieve the exact opposite behavior.
I set
resumeOnRestart
tofalse
, but if I stop the server and restart it after the scheduled start date, the task still runs...And within the job data, I also can't find any fields that would help me determine if the task wasn't completed on time and discard it. For one-time tasks, you can use the start time, but for cron tasks, it's problematic.
This behavior is unexpected.
Desired behavior:
The task should run every half hour (at xx:00 and xx:30 each hour). If the server was turned off at xx:20 and turned back on at xx:40, the server should not run the missed task at xx:40.
The text was updated successfully, but these errors were encountered: