Cron Job Execution
Cron Job Executions are historical records of each time a cron job runs. They capture the execution status, console logs, return values, timing information, and any errors that occurred.At a Glance
- Records every scheduled and manual execution
- Captures console output and script return values
- Tracks execution duration and status
- Supports filtering by status and trigger type
- Useful for debugging and monitoring
Data Shape
Execution Status
| Status | Description |
|---|---|
running | Currently executing (in progress) |
success | Completed without errors |
failed | Terminated due to an error |
timeout | Exceeded 5-minute time limit |
Trigger Types
| Type | Description | triggeredById |
|---|---|---|
scheduled | Automatic execution by scheduler | null |
manual | User-initiated via UI or API | User’s ID |
Logs and Output
Console Logs: Allconsole.log(), console.error(), etc. calls are captured:
output:
Execution Statistics
The parent CronJob includes aggregated statistics from executions:Security & Permissions
- View: Any organization member can view execution history
- Create: System only (via scheduler or manual trigger)
- Delete: Not supported (audit trail preserved)
API Notes
cronJob.listExecutions: Paginated list with filtering by status and trigger typecronJob.getExecution: Full execution details including logs and outputcronJob.get: Includes recent executions and aggregated statistics
Monitoring Best Practices
- Check failure patterns: Look for recurring errors at specific times
- Monitor execution duration: Sudden increases may indicate issues
- Review logs regularly: Catch warnings before they become failures
- Set up alerts: Use the output to trigger external monitoring
- Track success rates: Calculate
successCount / totalExecutions
Example: Debugging a Failed Execution
Related Concepts
- CronJob - Parent scheduled automation job
- CronJobVariable - Environment variables and secrets

