Scheduling

Workflows can run on a recurring schedule. Add a schedule object to the workflow definition.


Configuration

json
{
  "name": "daily_reconciliation",
  "definition": {
    "schedule": {
      "every": "1d",
      "at": "02:00",
      "timezone": "America/New_York"
    },
    "actions": [ ]
  }
}

Schedule Fields

Field Type Required Description
every string Yes Interval: a whole number followed by s, m, h, d, or w, such as 30m, 6h, 1d, or 1w. The shortest interval is 1 minute
at string No Time of day in 24-hour HH:MM format ("02:00", "14:30"). The first run is at the next at, and later runs follow every interval from it
timezone string No IANA time zone that at is read in ("America/Vancouver", "Europe/London", "Asia/Tokyo"). Defaults to the deployment's TENANT_TIMEZONE, then UTC

Examples

Daily at 2:00 AM Eastern:

json
{
  "schedule": {
    "every": "1d",
    "at": "02:00",
    "timezone": "America/New_York"
  }
}

Every 6 hours:

json
{
  "schedule": {
    "every": "6h"
  }
}

Every 30 minutes:

json
{
  "schedule": {
    "every": "30m"
  }
}

Weekly at midnight UTC:

json
{
  "schedule": {
    "every": "1w",
    "at": "00:00",
    "timezone": "UTC"
  }
}

Validation

A schedule the scheduler cannot run is refused when the workflow is saved, with a 400 validation_error that names the field, and nothing is saved:

Refused Example
An unknown unit "every": "5y"
An interval under 1 minute "every": "30s"
A time that is not HH:MM "at": "6am"
An unknown time zone "timezone": "Mars/Olympus"

Changing any schedule field on update, including only timezone, re-registers the schedule in place.

Daylight saving. The interval is a fixed length of time. A daily run set for 06:00 in a zone that observes daylight saving moves by an hour when the clocks change.

---

How Scheduled Runs Work

Scheduled workflows execute with an empty @input unless a default input payload is configured. The @now context variable reflects the timestamp at execution time.

Each scheduled occurrence creates a standard workflow run with its own run_id, context, and audit trail. It follows the same execution path as a manually triggered run.

Scheduled occurrences are independent. Design side-effecting steps to be idempotent when a schedule can fire again before earlier work has finished.

Scheduling and conditions. You can combine schedule with a top-level condition to create conditional scheduled workflows. A daily run, for example, can proceed only when new records are available. The schedule starts the workflow, and the condition gates execution.

→ Next: [Multi-Tenancy](/platform/multi-tenancy)