# General

URL: https://docs.usestitch.ai/docs/triggers/cron



Set `provider: cron`. A cron trigger runs against the containing repository on a
five-field schedule (minute, hour, day of month, month, day of week).

## Schema [#schema]

[Cron trigger JSON Schema](/schema/cron.json) · [Factory schema](/schema/factory.json)

```yaml
key: nightly-maintenance
name: Nightly maintenance
provider: cron
harness: coding-agent
sandbox: workspace
agentId: build
initialPrompt: Run maintenance.
schedule: '0 2 * * *'
timezone: UTC
concurrency:
  scope: repository
  limit: 2
```

`schedule` is a five-field cron expression. `timezone` is an IANA timezone and
defaults to `UTC`. Do not constrain both day of month and day of week.

Optional `concurrency` supports `scope: repository` and an integer `limit` from 1 to 100.
Runs wait in the queue when this trigger's capacity is full.

## Delivery [#delivery]

Occurrences enter the delivery queue; admitted runs enter the run queue.
The occurrence identity is `triggerId:scheduledAt`, so scheduler retries never start a second run.
Occurrences more than five minutes late are skipped, and occurrences for a
disabled or deleted trigger reconcile the schedule instead of running.
