Recover Cron worker from missed tick #518
Similiukas
started this conversation in
General
Replies: 1 comment
-
|
This is resolved in #513 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to recover cron worker from a missed tick? For a scenario where the machine is put to sleep, if the scheduled time is missed, worker emits
Error::SourceError::OutOfRangeErrorand then never runs after that.This happens for example on fly.io machines which can be suspended when there is no load. Or just more simply replicate it running a docker and putting the device to sleep to miss the next schedule. Then the worker executes not on time and
.on_event()emits an error, however, the worker successfully completes the job. That is,some_fn()runs to finish without problem. However, next job is not scheduled and the worker never executes again.Code snippet
Testing timeline:
Beta Was this translation helpful? Give feedback.
All reactions