Schedule and trigger pipelines
Open Automation in the app. Everything here starts the pipeline’s active version, so activate the version you want to run first.
Schedules
Section titled “Schedules”Choose a pipeline and when it should run:
- Cron expression, for example
0 6 * * 1-5for 06:00 on weekdays. - Every … minutes or hours.
- Business day of the month, for example the 1st business day at 06:00, or the last
(
-1). Weekends and the dates of your “don’t run on” calendars don’t count. - Once, at a date and time.
Times use the schedule’s time zone, so 06:00 stays 06:00 when the clocks change. The form shows the next five run times as you edit.
After downtime decides what happens if Flux was unavailable when a run was due: run once to catch up, or skip to the next time.
Calendars
Section titled “Calendars”Admins create calendars of dates, such as bank holidays or month-end freezes, from a list of dates, an ICS feed that refreshes daily, or both. Calendars are shared: every schedule and trigger can use them.
- Don’t run on: no runs on those dates, and they aren’t business days.
- Only run on: runs happen only on those dates.
Trigger rules
Section titled “Trigger rules”A trigger starts a pipeline when something happens:
| When | Match example |
|---|---|
| A pipeline run changes status | {"status": "succeeded", "pipeline": "load-orders"} |
| A dataset is committed | {"dataset": "orders"} |
| An external event | {"region": "eu"} |
A value can be a list, for example {"pipeline": ["load-orders", "load-customers"]}.
Cooldown limits how often a trigger can start a run. A trigger can’t restart its own
pipeline when that pipeline finishes, to prevent loops.
External events
Section titled “External events”Other systems start pipelines by posting an event with an editor API key:
curl -X POST https://flux.nasterra.com/api/events/external/crm-sync \ -H "Authorization: Bearer $FLUX_TOKEN" -H "Content-Type: application/json" \ -d '{"region": "eu"}'A trigger on An external event named crm-sync with match {"region": "eu"} then
runs its pipeline.
What fired
Section titled “What fired”Recent firings lists each time a schedule or trigger fired and the run it started, or why it couldn’t (for example, the pipeline has no active version). Runs started this way show their trigger on the run page.