How to send pings, understand states, avoid duplicate alerts, and verify your monitoring is reliable.
Each job has a unique token. Send HTTP pings to mark lifecycle: start, success, fail. The monitoring worker runs every 60s to detect timeouts or missed executions (stale) and fires one alert per incident.
Start
POST https://<app>/api/ping/<TOKEN>/start Headers: none required Body: empty
Success
POST https://<app>/api/ping/<TOKEN>/success Body: empty
Fail
POST https://<app>/api/ping/<TOKEN>/fail
Body: optional { "message": "context about the error" }Tip: use short client-side timeouts (3-5s) so your job never blocks on network hiccups.
Use the smoke script with a test token:
TEST_APP_URL="https://silent-fail.kreatives.io" TEST_PING_TOKEN="your_token" pnpm smoke
This sends start/success/fail so you can see events and status on the dashboard.