Published October 21, 2026
How to Monitor Heroku Scheduler Jobs
Heroku Scheduler starts a one-off dyno on a coarse timer. It does not tell you when that dyno never starts. A failed command is a line in the log until you go looking. A heartbeat ping after the command turns both into one alert.
The Scheduler limits below are from Heroku's docs. A Linux crontab on a machine you run is crontab not running. The same silence on Render, Railway, or Fly.io is monitor Render, Railway, and Fly cron. Rails schedulers that live in Sidekiq, GoodJob, or Solid Queue are Sidekiq and Rails jobs. The general pattern is how to monitor cron jobs.
What Scheduler is, and what it promises
Scheduler is a free add-on for jobs on a schedule, in the role cron has on one server. The add-on itself is free. Each run is a one-off dyno, and those hours count like heroku run and scaled dynos. The invoice lists them as a scheduler dyno type.
Install with heroku addons:create scheduler:standard, or from Resources. The dashboard offers every 10 minutes, every hour, or every day, plus a dyno size and a time. The run is a one-off dyno named like scheduler.X in the logs. A task is any command the app can run: a rake task, a bin/ script, or a process type whose command Scheduler runs, with any parameters you add.
The daily next-run time is UTC, so add the UTC offset yourself when you want a local time. The hourly example is minute :30, and the daily example is 00:00.
heroku run your-command uses the same kind of one-off dyno. If the command works under heroku run, Heroku says it will work from Scheduler. That manual run proves the script and, if you ping from it, stores a success. It does not prove the schedule fired.
Execution is expected but not guaranteed. Heroku's changelog calls that a best-effort service. The Scheduler article says a job is occasionally (but rarely) missed, that it may not run at the scheduled time or at all, and that in very rare instances it may be skipped or may run twice. Critical jobs should use a custom clock process.
A Scheduler dyno will not run longer than its frequency. Every 10 minutes means termination after approximately 10 minutes, with jitter, so the old and new dyno can overlap briefly. Keep the task short, or enqueue longer work. Anything past a couple of minutes belongs on a worker dyno. With Container Registry, the task has to live on the web image. There is no other image to select.
Logs show the dynos that started
Output goes to the app log as process scheduler.X. Heroku's example is:
heroku logs --ps scheduler.1
heroku ps lists that dyno, including a completed one. A log drain forwards the same logs: syslog or HTTPS on Cedar, telemetry drains on Fir. heroku logs is the buffer. A skip often has no line, because no dyno was created. A non-zero exit is only in the log of a dyno that started. Neither case alerts you.
On the Common Runtime, config vars in the task command are expanded into the logged command. A ping URL pasted into that command is on the line. Read it from a config var inside a script, and leave the task as bin/report.
Why a failure and a skip look the same from outside
Scheduler records the dyno. CronNudge records the ping.
A non-zero exit did run, and the log can show why. That exit does not call CronNudge. A shell that pings only on success leaves the same gap as a dyno that never started: no success ping, then one down alert after grace. The alert means the success ping did not arrive. It does not carry the Heroku exit status or the log line.
A skip is that same silence, and a log search is a poor way to see it, because the line was never written. A rare second run is a second success ping. Two successes do not alert. The later one moves the deadline, so the task has to be safe to run twice.
CronNudge does not call the Heroku API, cannot read dyno logs, and cannot start or retry a job. It only knows about pings it receives.
Ping when the command finishes
The success URL is https://cronnudge.com/ping/YOUR_ID. GET, POST, and HEAD all count. A stored ping answers ok with Cache-Control: no-store. YOUR_ID is the ping id, not the badge id. Keep CRONNUDGE_URL free of a query string and of /start or /fail. -f fails on an HTTP error, -sS is quiet unless curl fails, -m 10 caps the wait at 10 seconds, and --retry 3 retries transport failures.
The short task pings only after bin/job exits 0:
bin/job && curl -fsS -m 10 --retry 3 https://cronnudge.com/ping/YOUR_ID
A non-zero job never calls the URL. The check goes late when grace ends. That alert arrives at the deadline, which is the right signal for a command that failed, just later.
If the job exits 0 and curl then fails, the task exits with curl's non-zero status, which shows in the scheduler.X log. Append || true when a monitoring hiccup should leave the dyno alone. The ping is still missed, and the check alerts after grace. In the script, so the URL is not the logged task text:
#!/bin/sh
bin/job && { curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL" || true; }
Point Scheduler at bin/report. heroku run bin/report runs it on a one-off dyno and can store the first success.
Pass the exit code
?exit= accepts an integer from 0 to 255. 0 is a success. 1 through 255 is a failure: the check is marked down immediately when it was not already down. Anything else is ignored, and the ping stays a success. A shell $? is already in range. && never sends the query, because the curl is skipped on failure. Capture the status, ping, then exit with the job's code:
#!/bin/sh
bin/job
code=$?
curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL?exit=$code" || true
exit "$code"
Leave set -e off above bin/job, or the script exits before the curl. /fail is the same immediate down alert. A paused check stores the ping and does not alert.
/start and a max runtime
/start records a start. It is not a success. Turn on "Track start and finish," or set Max runtime, which turns run tracking on. A second /start while a run is open is an overlap alert and does not close the first run. That is how a brief double dyno shows up. A success or /fail closes the open runs. Two success pings alone do not raise an overlap alert. Only a second /start while a run is open does.
Max runtime is 1 second through 7 days. With a run open, the deadline becomes that start plus the max runtime. The schedule's grace is not the earlier of the two. No finish means one stuck alert, once for that start, and the check goes down. A later success is the recovery. With run tracking and no max runtime, an open run is due after grace, at least 60 seconds, and the alert is down. A skip never calls /start, so it cannot go stuck. Silence until grace is the alert for a dyno that never started. Free includes run tracking on 3 checks. Pro removes that cap. Details are in assertions, runs, and agents.
#!/bin/sh
curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL/start" || true
bin/job
code=$?
curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL?exit=$code" || true
exit "$code"
The start request is not chained onto the job with &&, so a failed curl does not skip the work. --retry can deliver /start twice when the first request was stored and the response was lost, and that second start is an overlap alert. An Idempotency-Key makes the retry a replay. The key is cut at 128 characters and matched per check, so the finish ping needs its own key.
Set max runtime a little past the longest healthy run. Heroku ends the dyno at about the interval, so a 10-minute job is a poor home for a 30-minute task. If the dyno dies before the finish curl, the open run hits max runtime and the stuck alert fires. Longer work belongs on a worker, and the worker pings. Hangs are in cron job stuck or hanging.
Match the check to the frequency
Scheduler has no five-field crontab and does not promise the minute. It also does not publish a lateness bound. The graces below are a few minutes on the short jobs and an hour on the daily job. Read real starts in heroku logs --ps scheduler.1, then change grace. The cron tool, timezone UTC, lists the check's next runs before grace is added.
The form's periods are 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 1 day, and 1 week. Grace is none, 1 minute, 5 minutes (the default), 15 minutes, or 1 hour. Anything else, from the plan minimum up to 31 days for an interval and from 0 through 7 days for grace, is an API value. The API is on Pro. Free's minimum is 5 minutes, and every Scheduler frequency is longer, so the checks below fit Free. Saving a check starts that clock immediately. heroku run once so the first ping is real. An interval then counts from the last success.
Every 10 minutes. When logs show minutes 0, 10, 20, 30, 40, and 50, use */10 * * * *, timezone UTC, grace 5 minutes. The gap is 10 minutes. A start a few minutes late still pings. A missing start is late five minutes after the slot. A stable offset uses a shifted expression: 3-59/10 * * * * is 3, 13, 23, 33, 43, 53. If the minute wanders, use the form's 15-minute interval and 5 minutes of grace (late 20 minutes after the last success). Pro can set 600 seconds via the API, plus that 5-minute grace, for a deadline 15 minutes after the last success. The form has no 10-minute row, and its 5-minute row would fall due before the next healthy run.
Hourly. Heroku's example minute is :30. When logs show that minute in UTC, use 30 * * * *, timezone UTC, grace 15 minutes, so a skipped hour is late at :45. Only the daily control is documented as UTC, so check the timestamps before trusting the zone. Until then, a 1-hour interval and 15 minutes of grace is due 75 minutes after the last success and does not need a zone.
Daily. For 00:00 UTC, use 0 0 * * *, timezone UTC, grace 1 hour. A success at 00:04 is next due at 01:00 UTC the following night. A missing dyno alerts at 01:00. A non-zero ?exit= marks the check down at 00:04 instead. A later success, while the check is down, is the recovery. A 1-day interval plus 1 hour of grace is the version that follows the last success when the logged start misses the minute. A check saved at 10:00 UTC is already due at the coming 00:00 plus grace.
One alert when the check goes down, and one on recovery. A second failure while it is already down does not send another.
A clock process
Heroku points critical jobs at a custom clock process. Scheduler is the simple tool for daily, hourly, or every 10 minutes. Three times a day, every two hours, or every 5 seconds needs your own clock.
Scale one clock dyno, heroku ps:scale clock=1. Hours accrue the whole time it runs. A second clock can enqueue duplicates unless you lock. The clock only enqueues; a worker does the work, so at least one worker must be up. Dynos restart at least once a day, and the clock needs startup logic so that restart does not skip an interval. Heroku's Python article uses APScheduler and says the clock should queue work rather than do it.
Ping from the worker after the work. A live clock with a worker that never runs is the same missing ping as a skipped Scheduler dyno.
Free is 10 checks, a 5-minute minimum interval, email plus one Slack or Discord channel, and run tracking on 3 checks. Pro is $12 a month for 100 checks, a 1-minute minimum, and no cap on run tracking. Details are on pricing.
FAQ
Does Heroku Scheduler tell me when a job never runs? No. Execution is expected but not guaranteed. A job may be skipped, or may run twice, in very rare instances. Logs show dynos that started, under a name like scheduler.1. A run that never started has no line. A ping after the command is what makes that silence one alert.
Which frequencies can I pick? Every 10 minutes, every hour, or every day. The daily next-run time is UTC. The hourly example is a minute such as :30. Scheduler is not a five-field crontab. A finer interval is a custom clock process.
Does a non-zero exit alert immediately? Only if the ping is sent. bin/job && curl runs only after exit 0, so a failure waits out grace. ?exit= from 1 to 255 marks the check down immediately when it was not already down. exit=0 is a success. A value outside 0 to 255 is ignored. /fail is the same immediate down alert.
What if the job runs past its frequency? The dyno will not run longer than the interval. An every-10-minutes job is terminated after approximately 10 minutes, with jitter, and two dynos can overlap briefly. Work that takes more than a couple of minutes belongs on a worker dyno. Ping /start and set a max runtime, from 1 second through 7 days, to alert when an open run is stuck. A job that never starts never calls /start, so the missed success ping is still the alert.
Can CronNudge read the dyno logs or retry the job? No. It does not call the Heroku API, read dyno logs, or start or retry jobs. It only knows about pings it receives. heroku logs and a log drain are where the output goes.
Does every 10 minutes fit the Free plan? Yes. Free's shortest interval is 5 minutes. Free is 10 checks, email plus one Slack or Discord channel, and run tracking on 3 checks. Pro is $12 a month for 100 checks, a 1-minute minimum, and no cap on run tracking. The form has no 10-minute row, so Free uses a cron expression with a 10-minute gap. An interval of 600 seconds is an API call, and the API is on Pro.
The dyno starts, or it does not. The log is the dyno you look up. The ping is the run that never called. Create the check, or read the expression on the cron tool. Related: how to monitor cron jobs, crontab not running, Render, Railway, and Fly.io, and Rails scheduled jobs when the schedule is Sidekiq or GoodJob rather than the Scheduler add-on.