
Execution Assert
CertifiedAssert boolean expressions against execution data.
Execution Assert
Assert boolean expressions against execution data.
Renders each string in conditions and coerces the result to boolean (empty string/0 is false, everything else true). Any falsy assertion logs an error, emits failed/success metrics, and stops the flow with an exception.
Use errorMessage to append extra context to the thrown error.
type: io.kestra.plugin.core.execution.AssertExamples
Assert based on inputs data
id: assert
namespace: company.team
inputs:
- id: param
type: STRING
required: true
tasks:
- id: fail
type: io.kestra.plugin.core.execution.Assert
conditions:
- "{{ inputs.param == 'ok' }}"
- "{{ 1 + 1 == 3 }}"
Properties
conditions *array
List of assertion condition, must coerce to a boolean.
Boolean coercion allows 0, -0, and '' to coerce to false, all other values to coerce to true.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150errorMessage string
Optional error message