Scheduled
Use this when work repeats at fixed times, such as a digest on weekday mornings.
# yaml-language-server: $schema=https://re-cinq.github.io/floor/schemas/pipeline.schema.jsonline: id: scheduled entry: build exit: done fail: stopped start: on: - schedule.morning-digest.tick args: day: "{scheduledFor}" args: day: kind: value subject: true nodes: - id: build station: build-digest - id: done - id: stopped edges: - from: build to: done on: success - from: build to: stopped on: failedstations: build-digest: description: A worker of yours builds the digest for the day. kind: service outcomes: - success - failed needs: - name: day kind: value produces: - name: digest kind: valueschedules: morning-digest: cron: "0 7 * * 1-5" timezone: Europe/Amsterdam payload: {}How it works
Section titled “How it works”- The
morning-digestentry underschedulesticks on itscron, read in itstimezone. - Each tick sends the event
schedule.morning-digest.tick. Its payload ispayloadplusscheduledFor. - The line lists that event in
start.on. - The template
{scheduledFor}fills the argumentday, which is the run’s subject. A tick that repeats joins the open run.
See Schedules and Start templates.