On run settled
Use this when a failed run needs follow-up, such as an alert.
# yaml-language-server: $schema=https://re-cinq.github.io/floor/schemas/pipeline.schema.jsonline: id: on-run-settled entry: alert exit: done fail: stopped start: on: - internal.run.settled when: outcome: failed args: run_id: "{runId}" line_id: "{lineId}" args: run_id: kind: value subject: true line_id: kind: value nodes: - id: alert station: send-alert - id: done - id: stopped edges: - from: alert to: done on: success - from: alert to: stopped on: failedstations: send-alert: description: A worker of yours tells the team which run of which line failed. kind: service outcomes: - success - failed needs: - name: run_id kind: value - name: line_id kind: value produces: []How it works
Section titled “How it works”- The floor sends
internal.run.settledwhenever a run ends. start.onlists that event andstart.whenkeeps onlyoutcome: failed.start.argsfillsrun_idandline_idfrom the payload fieldsrunIdandlineId.- A line never starts on this event for its own runs, so a failed alert does not start another alert.
See How a run ends and Start.