Skip to content

Why was my cronjob disabled?

Your cronjob will fail when your web server is down/unreachable, or it returns an HTTP status code other than 2xx (200 - 204).

It will be disabled after a failure threshold. The default failure threshold is 10 consecutive failures. You can update it in the section Failures, retry, and repeat when adding/editing cronjobs.

You will receive a cron notification (via email, Slack, or webhook) when your cronjob was disabled because of failures.

When your cronjob fails 3 consecutive times, we will back off linearly. For example, with a failure threshold of 10:

  • After 3 consecutive failures, we remove the next queued execution.
  • After 4 consecutive failures, we remove the next 2 queued executions.
  • After 5 consecutive failures, we remove the next 3 queued executions.
  • After 9 consecutive failures, we remove the next 7 queued executions.
  • After 10 consecutive failures, we disable your cronjob.

The removed queued executions have no payload and are within:

  • 1 day if your cronjob runs 4 times a day or less
  • 3 hours if your cronjob runs 24 times a day or less
  • 1 hour otherwise

For example, your web server is down, and your cronjob every minute keeps failing. After 3 minutes - 3 consecutive failures, it will skip one minute, then 2 minutes, then 3 minutes, …, then 7 minutes. It will be disabled after a continuous downtime of 39 minutes.

This way FastCron won’t hitting your failing cronjobs repeatedly and overloading your server with unnecessary requests.