MultipleCondition MultipleCondition

yaml
type: "io.kestra.core.models.conditions.types.MultipleCondition"

Condition for a list of flows.

Trigger when all the flows are successfully executed for the first time during the window duration.

Examples

A flow that is waiting for 2 flows to run successfully in a day

yaml
triggers:
  - id: multiple-listen-flow
    type: io.kestra.core.models.triggers.types.Flow
    conditions:
      - type: io.kestra.core.models.conditions.types.ExecutionStatusCondition
        in:
        - SUCCESS
      - id: multiple
        type: io.kestra.core.models.conditions.types.MultipleCondition
        window: P1D
        windowAdvance: P0D
        conditions:
          flow-a:
            type: io.kestra.core.models.conditions.types.ExecutionFlowCondition
            namespace: io.kestra.demo
            flowId: multiplecondition-flow-a
          flow-b:
            type: io.kestra.core.models.conditions.types.ExecutionFlowCondition
            namespace: io.kestra.demo
            flowId: multiplecondition-flow-b

Properties

conditions

  • Type: object
  • SubType: Condition
  • Dynamic:
  • Required: ✔️

The list of conditions to wait for

The key must be unique for a trigger since it will be use to store previous result.

id

  • Type: string
  • Dynamic:
  • Required: ✔️
  • Validation regExp: ^[a-zA-Z0-9][a-zA-Z0-9_-]*
  • Min length: 1

A unique id for the whole flow

window

  • Type: string
  • Dynamic:
  • Required: ✔️
  • Format: duration

The duration of the window

See ISO_8601 Durations for more information of available duration value. The start of the window is always based on midnight except if you set windowAdvance parameter. Eg if you have a 10 minutes (PT10M) window, the first window will be 00:00 to 00:10 and a new window will be started each 10 minutes

windowAdvance

  • Type: string
  • Dynamic:
  • Required: ✔️
  • Format: duration

The window advance duration

Allow to specify the start hour of the window Eg: you want a window of 6 hours (window=PT6H). By default the check will be done between: 00:00 and 06:00 - 06:00 and 12:00 - 12:00 and 18:00 - 18:00 and 00:00 If you want to check the window between: 03:00 and 09:00 - 09:00 and 15:00 - 15:00 and 21:00 - 21:00 and 3:00You will have to shift the window of 3 hours by settings windowAdvance: PT3H