Skip to content

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

  1. Navigate to Schedules
  2. Click New Schedule
  3. Select type (once, delayed, cron)
  4. Configure timing
  5. Select callback (workflow)
  6. 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

ExpressionDescription
0 9 * * *Daily at 9:00 AM
0 9 * * 1Every Monday at 9:00 AM
0 */2 * * *Every 2 hours
0 9-17 * * 1-5Hourly 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

StatusDescription
activeRunning
pausedTemporarily disabled
completedOne-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.

Released under the MIT License.