Ping snippets
Every snippet sends the same three signals: a start ping, a success or failure ping, and the end of the output. Each uses HTTPS, a timeout, and ignores its own errors, so a lost ping can never fail your job.
Languages
Shell and curlA shell wrapper that reports start, exit status and the end of the output to CronMissed with curl, with the flags that make a ping safe.PythonA Python decorator that reports start, success and failure to CronMissed with only the standard library, with a timeout and no failure from the ping.GoA small Go helper that reports start, success and failure to CronMissed with net/http, a client timeout and the tail of the error as the body.Node.jsA Node.js helper using built-in fetch that reports start, success and failure to CronMissed with a timeout and the tail of the stack trace.PHPA PHP function that sends start, success and failure pings to CronMissed with curl, a timeout and the tail of the exception message.RubyA Ruby module using Net::HTTP that reports start, success and failure to CronMissed, with timeouts and the tail of the backtrace as the body.C#A C# helper using HttpClient that reports start, success and failure to CronMissed with a timeout and the tail of the exception as the body.PowerShellA PowerShell function that reports start, success and failure to CronMissed with Invoke-RestMethod and the exit code of a native command.Arduino and ESP boardsAn ESP32 sketch that sends a CronMissed ping over HTTPS. Plain HTTP is redirected and fails, so the sketch needs TLS and a root certificate.
Tools and platforms
GitHub ActionsA GitHub Actions step that reports a scheduled workflow to CronMissed, with if: always() and the job status deciding the ping.systemdA systemd service and timer that ping CronMissed at the start and with the exit status, using ExecStartPre and ExecStopPost.DockerA Docker entrypoint that wraps any command with CronMissed start and exit-status pings, for jobs run with docker run or Compose.
Questions and answers
- Yes. The snippet builder takes a schedule, a time zone and a typical run time, and writes the check settings and the snippet for crontab, systemd, GitHub Actions, Vercel, Kubernetes, EventBridge and the backup tools.
- They run, but the ping goes nowhere. Create a check first and use its ping URL.
Can I build a snippet for my own schedule?
Do the snippets work without a CronMissed account?
Know the moment a job goes quiet
Create a check, add one curl to the job, and CronMissed alerts you when a ping is late or reports a failure.
Start monitoring