> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fapost.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Schedule trigger

> Start a flow on a schedule — every weekday at nine, every hour, the first of the month — in the time zone you choose.

A schedule trigger starts a flow at the moments a cron expression describes, in a time zone you choose. The flow runs
without a contact, as an automation run, with the moment it was started for available under `flow.schedule`.

## Setting it up

1. Add a trigger to the flow and choose **Schedule**.
2. Enter the **Cron** expression: five fields — minute, hour, day of month, month, day of week. For example:

   | Cron | Runs |
   | - | - |
   | `0 9 * * 1-5` | at 09:00, Monday to Friday |
   | `*/15 * * * *` | every 15 minutes |
   | `30 7 1 * *` | at 07:30 on the first of every month |
   | `@daily` | at midnight (also `@hourly`, `@weekly`, `@monthly`, `@yearly`) |

   A schedule runs at most once a minute: an expression with a sixth field (seconds) is refused.
3. Enter the **Time zone** as an IANA name, such as `Europe/Berlin`, `America/New_York` or `UTC`. The cron is read in
   that zone, so `0 9 * * *` in `Europe/Berlin` runs at nine in Berlin, in winter and in summer.
4. [Publish](https://docs.fapost.in/using/publishing.md) the flow. Adding, changing or removing a schedule needs **Manage automations**.

Publishing refuses an expression that is not five fields (`invalid_schedule_cron`) and a time zone that is not an IANA
name (`invalid_schedule_timezone`).

The first run is the first moment of the schedule after the publish. Publishing again without changing the cron or the
time zone keeps the schedule where it is; changing either one, or switching the trigger off and on again, starts it
afresh from the moment of the publish. Switching the trigger off, deleting it or deleting the flow stops it; deleting
the flow also cancels a run of the schedule that is waiting to start within its minute, while a run that has already
started keeps the flow from being deleted until it ends. Deleting the assistant the flow belongs to stops the schedule
too, at its next moment.

> [!NOTE]
>
> A schedule published before your installation was upgraded to the release that runs schedules does not run until
> its flow is published again.

## When it runs and when it does not

* **One run at a time.** If the previous run of the trigger is still going — running, sleeping in a **Delay** block,
  waiting for an answer or for a subflow — the next moment is skipped, not queued. The skip is written to the log as
  `flow.schedule.tick_skipped`.
* **No catching up.** Moments that pass while the platform or the workspace is down (or stopped) are not run
  afterwards. A moment is still run if it is picked up up to five minutes late; after a longer outage the schedule logs
  `flow.schedule.tick_missed` once and continues with its next moment.
* **One run per pass.** Each pass runs at most one moment of a trigger, the earliest one due. When a pass comes late
  and more moments of a frequent schedule have come due meanwhile (`* * * * *` picked up at 09:02 runs 09:00), the
  later ones are not run; they are logged as one `flow.schedule.tick_missed` line with their count, `missed_slots`.
  Such lines without an outage mean the passes take longer than a minute.
* **Daylight saving time.** A time that does not exist on the day clocks go forward (02:30 in Berlin on the last
  Sunday of March) does not run that day. A time that happens twice on the day clocks go back runs once, the first
  time.
* **Within the minute.** Runs of the same minute are spread over its sixty seconds, so a schedule may start a few
  seconds after the full minute; each trigger always gets the same offset.
* A flow that is not published, or whose published version is switched off, does not run; the moment is skipped and
  logged.
* A flow switched off in the flows list does not run either; the moment is skipped and logged (at the info level) as
  `flow.schedule.tick_skipped` with the reason `flow_off`. Turning the flow back on starts its next moment, never the
  ones it skipped.
* A paused trigger, or a workspace whose plan has no runs left, does not run either; the moment is skipped and counted
  on the trigger (see [Publishing](https://docs.fapost.in/using/publishing.md#when-a-trigger-starts-too-many-runs)).

## What the flow receives

| Variable | Value |
| - | - |
| `flow.schedule.slot` | The moment the run is for, in UTC, ISO 8601 — for example `2026-11-20T08:00:00+00:00` |
| `flow.schedule.local_time` | The same moment in the trigger's time zone — `2026-11-20T09:00:00+01:00` |
| `flow.schedule.timezone` | The trigger's time zone |
| `flow.schedule.cron` | The trigger's cron expression |

The flow has no contact, so blocks that need one cannot be published in it; see [Publishing](https://docs.fapost.in/using/publishing.md).

## For operators

Schedules are run by `flow:fire-scheduled-triggers`, which the scheduler starts every minute; without
`php artisan schedule:run` every minute ([Services](https://docs.fapost.in/self-hosting/services.md)) no schedule runs. The command looks up
which workspaces have something due in a table of the platform database, `flow_schedule_registry`, created by the
landlord migration, and enters only those. `flow:rebuild-schedule-registry` rewrites that table from the workspaces
every hour.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.