Scheduling & Cron
Automate task execution with flexible scheduling options.
Overview
Schedule types:
- Once - Execute at specific time
- Delayed - Execute after delay
- Cron - Recurring with cron expressions
Creating Schedules
Via Dashboard
- Navigate to Schedules
- Click New Schedule
- Select type (once, delayed, cron)
- Configure timing
- Select callback (workflow)
- Save
Cron Builder
Use the visual cron builder:
- Select frequency
- Pick specific times
- Preview next runs
- Generate expression
Cron Expressions
Format
┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12)
│ │ │ │ ┌───────────── day of week (0-6)
│ │ │ │ │
* * * * *Common Patterns
| Expression | Description |
|---|---|
0 9 * * * | Daily at 9:00 AM |
0 9 * * 1 | Every Monday at 9:00 AM |
0 */2 * * * | Every 2 hours |
0 9-17 * * 1-5 | Hourly 9-5 on weekdays |
Callback Types
Workflow
Trigger a workflow:
json
{
"callback_type": "workflow",
"callback_id": "my-workflow-id"
}Function
Call a specific function:
json
{
"callback_type": "function",
"callback_id": "processData"
}Schedule Status
| Status | Description |
|---|---|
active | Running |
paused | Temporarily disabled |
completed | One-time finished |
Management
Pause
Temporarily disable:
bash
curl -X PUT .../schedules/{id} -d '{"status": "paused"}'Resume
Re-enable:
bash
curl -X PUT .../schedules/{id} -d '{"status": "active"}'API Reference
See Schedules API for complete endpoint documentation.