Skip to main content

Quickstart: Cron Job Monitoring

  1. Add a POST request at the start/end of your cron script:
import fetch from 'node-fetch';

await fetch('https://cloud.seiri.app/abcd:1234/success', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ job_id: "backup_1", status: "success", timestamp: Date.now() })
});
  1. Verify the event in Event Logs.

  2. Configure alerts for missed or failed jobs.

Tip: Use descriptive job IDs for easier tracking.