Schedule monitor
Cinder can watch Laravel's scheduler: which tasks are registered, when they last ran, and whether they finished late or failed.
Setup
Schedule monitoring uses the same CINDER_KEY and CINDER_URL as error reporting. No separate monitor UUID is required — Cinder resolves the project's monitor from the API token.
Optional:
CINDER_SCHEDULE_MONITOR_ENABLED=true
CINDER_SCHEDULE_MONITOR_API_URL=https://cinderwatch.dev/api/v1/
CINDER_SCHEDULE_MONITOR_API_URL defaults to {CINDER_URL}/api/v1/ when omitted.
Sync task definitions
After deploy (or whenever the schedule changes):
php artisan cinder:schedule-sync
This replaces the project's task list with the current scheduled tasks (tasks no longer in the schedule are removed):
PUT /api/v1/schedule
Authorization: Bearer <project API key>
{
"tasks": [
{
"key": "inspire",
"summary": "Display an inspiring quote",
"cron": "* * * * *",
"interval_minutes": null,
"timezone": "UTC",
"grace_minutes": 5
}
]
}
Each task has a stable key (the command, job or closure description) and exactly one of cron or interval_minutes. Cinder responds with an id and a heartbeat_url for each task:
{ "tasks": [ { "key": "inspire", "id": "9b1d…", "heartbeat_url": "https://cinderwatch.dev/api/v1/heartbeats/9b1d…" } ] }
Automatic heartbeats
With CINDER_SCHEDULE_MONITOR_ENABLED=true (default), the package listens for:
ScheduledTaskStarting→ heartbeatstartedScheduledTaskFinished→ heartbeatsucceeded(with duration / memory when available)ScheduledTaskFailed→ heartbeatfailedScheduledTaskSkipped→ heartbeatskipped(a->when()or->skip()constraint stopped the run, so the task is not reported late)
Heartbeats go to the task's heartbeat_url and need no API token:
POST /api/v1/heartbeats/{id}
{ "event": "succeeded", "duration_ms": 1234, "memory_bytes": 20971520, "exit_code": 0, "error": null }
event is one of started, succeeded, failed or skipped. Every field is optional and event defaults to succeeded, so a bare GET (for example curl https://cinderwatch.dev/api/v1/heartbeats/{id} from a system crontab) also records a successful run.
Grace time
Default grace is five minutes (CINDER_SCHEDULE_GRACE_MINUTES, or cinder.schedule_monitor.grace_minutes in config). Tasks that miss their window after grace are marked late in Cinder.
Viewing your tasks
Open the Scheduled tasks check under Monitoring. The Report tab lists every synced task with its status (on schedule, skipped, late, failed or waiting for its first run), when it last ran, and the runtime, memory use and exit code from its latest heartbeat. A failed task also shows the error it reported. Problems are listed first.
The History tab shows each run of the check itself and which tasks were late or had failed at that moment.