
Execution Exit
CertifiedTerminate the current execution with a chosen state.
Execution Exit
Terminate the current execution with a chosen state.
Updates the execution to SUCCESS, WARNING, FAILED, CANCELED, or KILLED. When set to KILLED, an out-of-band kill event is sent so running task runs are stopped; other states simply mark the execution and parent task runs as finished.
Use with care inside parallel branches: only KILLED stops sibling tasks.
type: io.kestra.plugin.core.execution.ExitExamples
id: exit
namespace: company.team
inputs:
- id: state
type: SELECT
values:
- CONTINUE
- END
defaults: CONTINUE
tasks:
- id: if
type: io.kestra.plugin.core.flow.If
condition: "{{inputs.state == 'CONTINUE'}}"
then:
- id: hello
type: io.kestra.plugin.core.log.Log
message: I'm continuing
else:
- id: exit
type: io.kestra.plugin.core.execution.Exit
state: KILLED
- id: end
type: io.kestra.plugin.core.log.Log
message: I'm ending
Properties
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
{}1150state string
SUCCESSSUCCESSWARNINGKILLEDFAILEDCANCELLEDThe execution exit state
Using KILLED will end existing running tasks, and any other execution with a different state will continue to run.