Catch Up / Run All use case #685
Replies: 1 comment
-
Hello! Yes, your understanding of the catch-up feature is correct. If you disable the scheduler, then re-enable it later, it will run all the missed jobs that should have ran during the time when the scheduler was disabled.
Yes it is! You can pass
An import will replace / clobber all the records it imports, so your method may work, however...
You cannot perform an import while Cronicle is running. Doing so would corrupt the entire DB. It absolutely must be all stopped, and all jobs stopped, to do an import. I highly recommend you script the update_event API instead. First call get_schedule to get all your event IDs, then call update_event API for each one in sequence. Example update call that enables catch-up: {
"id": "3c182051",
"catch_up": 1
} All you need is the event Good luck! |
Beta Was this translation helpful? Give feedback.
-
I have a fairly large schedule (~500 events) where most of them need to run - meaning if a job fails, it is either set to retry or is manually restarted. A few will be fine if they miss execution and run again later. Jobs currently run 24/7/365. I am trying to block off a couple hours to establish a maintenance window for my DB that all the jobs use. I'm thinking I could just disable the scheduler during this window to stop new jobs from starting, kill or wait out running jobs, and when the maintenance is done, turn the scheduler back on. If I understand correctly, jobs with the "Catch Up" attribute set will execute if they were supposed to run while I had the scheduler disabled. I have a few questions related to this:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions