MultipleCondition

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

Condition for a list of flow

Trigger the first time all the flow are successfully executed during the window duration

# Examples

A flow that is waiting for 2 flows that is successful in 1 days

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

# Properties

# conditions

  • Type: object
  • SubType: ====
  • 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_-]+
  • 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 (opens new window) 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

# Definitions