# trigger.schedule

Starts the pipeline on a cron schedule once it is active

# trigger.schedule

```
trigger.schedule [--cron TEXT] [--timezone TEXT] → schedule
```

Starts the pipeline on a cron schedule once it is active. `--cron` is five fields (`0 7 * * *` = 07:00 daily), `--timezone` an IANA name (default UTC). Answers one key, `schedule`: `{ fired_at: <RFC 3339>, node_id }` (`input.schedule.fired_at`, `$trigger.fired_at`) — there is no `body`, no request; anything the job needs it reads from the database or KV. A scheduled pipeline must not end in a page (`web.response.send --template`); it ends in a write, a mail, or a bare [`web.response.send`](/nodes/web/web.response.send.md) summary. Runs show under `pipeline_get_invocations` with trigger `schedule`; the Studio's Schedules tab lists them.

## Flags

- `--cron`: Cron expression (e.g. '* * * * *' = every minute, '0 * * * *' = hourly).
- `--timezone`: IANA timezone, e.g. UTC or Asia/Jakarta.

## Examples

### Daily digest at 07:00 Melbourne time

```
| trigger.schedule --cron "0 7 * * *" --timezone Australia/Melbourne
```

It answers:

```json
{
  "schedule": {
    "fired_at": "2026-09-13T21:00:00+00:00",
    "node_id": "n0"
  }
}
```

### Every 15 minutes

```
| trigger.schedule --cron "*/15 * * * *"
```

## Used in

- [Agentic Scheduling (AI + Cron)](/examples/agentic-scheduling.md)
- [Web Scraping + Data Pipeline](/examples/scraping.md)
