What happens to cron jobs if app is down and comes back up later? #1633
-
|
Let's say I have a few cron jobs scheduled daily at 4:00am. Let's say we took the app down for maintenance at 3:30am, and are bringing it back up at 4:30am? Will the cron jobs run at this later point? What if a job is scheduled to run every 10 minutes and was skipped multiple times during this window? Figured it's better to ask here and have the answer documented/searchable for others. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It’s a good question. Like system cron, the jobs will only run at their scheduled time. There is a configuration to “gracefully” look back, but it’s intended for short time periods like a few minutes: https://github.com/bensheldon/good_job?tab=readme-ov-file#cron-style-repeatingrecurring-jobs |
Beta Was this translation helpful? Give feedback.
It’s a good question.
Like system cron, the jobs will only run at their scheduled time. There is a configuration to “gracefully” look back, but it’s intended for short time periods like a few minutes: https://github.com/bensheldon/good_job?tab=readme-ov-file#cron-style-repeatingrecurring-jobs