Check.condition Renamed to when
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Kestra 2.0.0 unifies all Pebble conditional expressions under a single property name: when.
The condition property on flow-level checks is renamed to when. A deprecated alias keeps condition functional in 2.0.0 so existing flows continue to parse without changes. The alias is scheduled for removal in a future version — update your flows now to avoid a hard break later.
Before
checks: - condition: "{{ inputs.environment == 'production' }}" message: "This flow can only run in production" behavior: BLOCK_EXECUTION style: ERRORAfter
checks: - when: "{{ inputs.environment == 'production' }}" message: "This flow can only run in production" behavior: BLOCK_EXECUTION style: ERRORThe behavior is identical — the same Pebble rendering and BLOCK_EXECUTION / FAIL_EXECUTION / CREATE_EXECUTION logic apply.
Migration steps
- Search your flows for
condition:insidechecksblocks and replace each occurrence withwhen:. The property value and any Pebble expressions stay the same. - Validate by saving the updated flows in the Kestra UI or via the API.
The condition alias will be removed in a future release. Flows that still use condition inside checks will fail to parse after the alias is dropped.
Was this page helpful?