Cron job monitoring

Know when a nightly job, a worker or a data pipeline stops running. Each job calls a ping URL when it finishes, and Flowhawk opens an incident when the ping doesn't come.

A job that silently stops sends no errors and no telemetry, so alerts on telemetry never fire. A heartbeat turns the missing run into an alert.

What you get

  • An incident when no ping arrives in time, or when the job reports a failure.
  • The incident on the business flow the job serves, so a missed invoice run and the invoicing flow's errors are one incident, not two.
  • Pages, Slack, email and the other channels you already route incidents to, with on-call schedules and escalation (Alerts, incidents and on-call).
  • Maintenance windows that pause the check while you work on the job.

Set it up

  1. In the app, open Uptime > New uptime check and pick A scheduled job.
  2. Say how often it runs and how late it may be, which flow it belongs to and who to notify.
  3. Copy the ping URL from the check's page and call it at the end of the job:
    # crontab: ping only when the job succeeded
    PING=https://api.flowhawk.dev/v1/heartbeat/TOKEN
    0 2 * * * nightly-invoices && curl -fsS -m 10 $PING

To report a failure straight away instead of waiting for the deadline, call the same URL with /fail at the end:

0 2 * * * nightly-invoices || curl -fsS -m 10 $PING/fail

GET, POST and HEAD all count. Keep the URL secret: anyone with it can ping.

Jobs on a schedule

For a job on a cron schedule, a heartbeat can follow the schedule itself (five fields or @daily, in your time zone): it is late when no ping arrives by the next scheduled run plus the grace time. Describe it to the agent ("the invoice job runs at 2:00 Brussels time and may take an hour"), or write it in the check's YAML.

Website and API checks

The same Uptime page runs HTTP, TCP, DNS, TLS certificate and domain checks. Before a check counts as down, probes on our other servers try it too, so one bad network path doesn't wake anyone.

Price

The first 50 checks and heartbeats are free. Each one beyond that is $0.05 a month, from the prepaid balance.