Monitor a scheduled job (cron) with check-ins
A cron job that silently stops running is the outage you find out about last. Check-ins tell Vakt360 when a job starts and finishes, so a missed run is flagged immediately.
Send a check-in when your job runs
Using the Sentry SDK's check-in API, report when the job starts and when it finishes. Use the same slug as the monitor you create in the next step.
tsconst checkInId = Sentry.captureCheckIn({ monitorSlug: "nightly-billing", status: "in_progress", }); // ... run the job ... Sentry.captureCheckIn({ checkInId, monitorSlug: "nightly-billing", status: "ok", // or "error" if it failed });Create the monitor
Under Uptime and cron in your project, choose Add cron monitor and give it the slug your code sends, the crontab schedule, and the time zone your server's cron uses. Check-ins for a slug that has no monitor are not stored, so create the monitor before the job's first run.
Set a grace period
A run counts as missed when no check-in arrives by its scheduled time plus the grace period, whether the job crashed, hung or never started. Set the grace period to cover the job's normal start-up delay, such as waiting for a container or a lock.
Get alerted on a miss
Add an alert for missed check-ins so a silent failure reaches your team. Missed-run alerts route through the same email, Slack and webhook channels as your errors.
See it next to your errors
Cron incidents sit in the same timeline as the errors happening at the same moment, so you can see cause and effect in one place.
Start monitoring on the free plan
100,000 events a month, no card required. Point your existing SDK at Vakt360 and see your first event in minutes.
