Why cron workflows can stop silently
A missing run needs a missing-heartbeat alert. If the workflow never starts, its reporting step cannot send a failure ping.
Check these GitHub scheduling rules
- Default branch: the workflow file must exist there; scheduled workflows run only there.
- High load: runs can be delayed, especially at the start of an hour; sufficiently high load can drop queued jobs. Consider another minute.
- Inactivity: public repositories have scheduled workflows automatically disabled after 60 days without repository activity.
- Clock: cron uses UTC by default. Check the expected time.
Source: GitHub Docs: events that trigger workflows — schedule.
Check whether the workflow is disabled
Open the repository’s Actions tab, select the workflow and use Enable workflow if disabled. See GitHub Docs: disabling and enabling a workflow.
Detect the next missing run with a heartbeat
- Create a free CronPulse check. Match the expected completion cadence, select UTC for a default UTC schedule and allow grace for runtime and queue delays.
- Link an alert channel. Copy the check’s private ping URL into the repository secret
CRONPULSE_PING_URL. - Save the existing wrapper below as
scripts/monitored-job.sh, replace the backup command and add the integration step to your workflow. - Complete one successful run to arm monitoring. If a later completion heartbeat never arrives, CronPulse marks the check overdue after its deadline plus grace and sends an alert.
#!/bin/sh
# PING_URL is the private URL copied from your check.
: "${PING_URL:?Set PING_URL first}"
rid="$(date +%s)-$$"
report() { curl -fsS -m 10 --retry 3 "$PING_URL/$1?rid=$rid" >/dev/null 2>&1 || :; }
trap 'code=$?; report "$code"; exit "$code"' EXIT
report start
sleep 1
./scripts/backup.sh
- name: Run monitored backup
shell: bash
env:
PING_URL: ${{ secrets.CRONPULSE_PING_URL }}
run: bash scripts/monitored-job.shThe wrapper preserves the task’s exit code and reports success or failure. A workflow that never starts cannot call it; the missing completion deadline provides that signal. See the GitHub Actions heartbeat setup guide for the existing snippet pattern and testing steps.
Deadlines are evaluated once a minute. Expect alerts roughly 1–2 minutes after grace ends, subject to delivery and scheduler load. An overdue check tells you a heartbeat is missing; investigate the workflow to find the cause.
Monitor free, or pay once
The free plan includes 20 checks, three alert channels and 100 log entries per check. No card required.
Prefer no subscription? Lifetime Pro is €69 one-time for the life of CronPulse, limited to the first 100 licences. It includes 100 checks, unlimited alert channels and 1,000 log entries per check. VAT may apply.
Frequently asked questions
Why is my GitHub Actions schedule not running?
Why did my public repository’s cron workflow stop?
How does CronPulse detect a missing workflow run?
Can I monitor workflows without a subscription?
Give your next job a heartbeat.
20 checks free. No card. Built in Ireland.