Triggers
A trigger starts a flow without a person pressing Run: on a schedule, when another flow ends, or when an outside system calls a URL. You declare triggers under triggers: in the flow's YAML, and the Triggers page lists them all, with their state and switches.

The three kinds
| Kind | Starts the flow when | Page |
|---|---|---|
| Schedule | The time matches a cron expression. | Schedule triggers |
| ScheduleOnDates | The time matches one of an explicit list of dates. | Schedule triggers |
| Flow | Another flow's execution ends in a state you chose, optionally after several flows have each ended. | Flow and webhook triggers |
| Webhook | An HTTP request reaches the webhook's URL. Off by default on the server. | Flow and webhook triggers |
| http.Trigger | A polled HTTP endpoint's response matches a condition. | HTTP trigger |
Plugin trigger types (and realtime triggers) are not fired. A trigger of such a type appears in the flow as Not run by egret with no switch.
triggers:
- id: every_minute
type: io.kestra.plugin.core.trigger.Schedule
description: Fires once a minute (UTC)
cron: "* * * * *"
timezone: UTC
What a trigger needs to fire
Three things must be on, and the Triggers page tells you which is missing:
- The scheduler (
EGRET_WORKFLOW__SCHEDULER_ENABLED=true). Without it schedules and flow triggers do not fire, and the page says The scheduler is off on this server, so schedules and flow triggers do not fire. - The worker (
EGRET_WORKFLOW__WORKER_ENABLED=true). Without it triggers create executions that never run: The workflow worker is off on this server, so executions are created but do not run. An administrator turns it on with workflow.workerEnabled (EGRET_WORKFLOW__WORKER_ENABLED=true). - Webhooks (
EGRET_WORKFLOW__WEBHOOKS_ENABLED=true), for webhook triggers only: Webhooks are off on this server; their URLs answer 404.
A disabled flow fires nothing: the page says This flow is disabled, so none of its triggers fire.
A trigger fires from the flow's saved draft, so a flow with a schedule starts running as soon as you save it, before you create any version. A flow shows up on the Triggers page as soon as it has a trigger that parses.
Find a trigger
Go to Workflows → Triggers.
| Control | What it does |
|---|---|
| Search | Matches the trigger id, the flow and the namespace (Search trigger id, flow or namespace…). |
| Namespace, Flow | Narrow to a namespace or a flow. |
| Kind | Schedule, ScheduleOnDates, Webhook, Flow, http.Trigger or Other. |
| Backfill | Running, Paused or Any backfill. |
| State | Enabled or Disabled. |
| Refresh | The button at the top right. |
The table's columns:
| Column | Meaning |
|---|---|
| ID | The trigger's id. |
| Flow | The flow as namespace.flow. |
| Type | An icon for the kind. |
| Next run | When a schedule fires next. A dash when it does not fire: off in its YAML, switched off, or its flow disabled or in the trash. |
| Last evaluated | The last tick the scheduler processed, which is not always when an execution started. |
| Last execution | The state and age of the execution the trigger last started, on one line. Select the time to open it; its id is in the link's name. |
| Status | Active, or who switched it off and when (cut short when long; the full text is its tooltip). |
| Enabled | The runtime switch. When it cannot be used, the reason is its tooltip; the Status column says it in words. |
| Backfill | A Backfill button for a schedule, or the state of a running backfill. When the button cannot be used, the reason is its tooltip. See Backfill. |
| Details | Opens the trigger's drawer. |
Headers and rows are one line each, and at 1440 px the whole table, Details included, fits the page without scrolling sideways. A long flow name is cut short; the full name is its tooltip.
Switch a trigger on or off
The Enabled switch turns a trigger off without editing the YAML. It works for all three kinds: a switched-off schedule stops firing, a switched-off flow trigger stops listening, and a switched-off webhook answers 409 Cannot execute webhook: the trigger … is disabled.
- A trigger with
disabled: truein the YAML has no switch: it says Disabled in the flow's YAML. Remove the line in the editor to enable it. - Switching a schedule back on asks what to do about the runs it missed. See Schedule triggers.
- To switch several at once, select rows and press Enable or Disable above the table (at most 100 at a time; each trigger gets its own result). On the Triggers page the same bar has Pause backfills, Resume backfills and Delete backfills. Until you select a row, one line beside the buttons says Select triggers to switch them or change their backfills; after, it counts the selection. The bar is shown only to people who can select, that is who hold
workflow:manage. - Switching needs
workflow:manage.
The details drawer
Details opens a drawer for one trigger:

| Section | Contents |
|---|---|
| Status | Active, or Switched off by Administrator 13 minutes ago. |
| Definition | The trigger's YAML block. A webhook's key is hidden until you press Reveal. |
| Schedule | Cron, Timezone, Next run (in the trigger's zone and in yours, or None: the trigger does not fire (see its status)), Last evaluated, Last error and Missed ticks. |
| Backfill | The running backfill's window, progress and what happens afterwards. |
| Flow trigger | The states heard, the mode, and the dependsOn conditions with Met or Not met and the window. |
| Webhook | The path, with Reveal and Copy. |
| Last execution | The state, id and time of the last run it started, or This trigger has not started an execution. |
The Triggers tab of a flow
Every flow page has a Triggers tab with the same table for that flow's triggers.

Limits and known issues
trigger.date,trigger.bodyand the othertrigger.*values are not available inside task expressions, only in the trigger's owninputs:. See Expressions.- A trigger id may be declared once per flow; a duplicate is an error when you save.
- Changing a schedule's trigger
idstarts a new schedule from now. - The page does not show trigger logs; a schedule's failure is in its Last error.