Kill an execution.
This task will kill an execution and optionally propagate the kill to child executions; only the non-terminated executions can be killed.
type: "io.kestra.plugin.kestra.executions.Kill"Examples
Kill the current execution with propagation to child executions
id: conditional-kill-flow
namespace: company.team
inputs:
- id: shouldKill
type: boolean
defaults: false
tasks:
- id: subflow
type: io.kestra.plugin.core.flow.Subflow
flowId: child
namespace: demo
wait: false
- id: kill
type: io.kestra.plugin.kestra.executions.Kill
runIf: "{{ inputs.shouldKill == true }}"
executionId: "{{ execution.id }}"
propagateKill: true
auth:
apiToken: "{{ secrets('KESTRA_API_TOKEN') }}"
Kill a specific execution by ID. Use "" to kill the current execution.
id: kill-specific-execution
namespace: company.team
tasks:
- id: kill_execution
type: io.kestra.plugin.kestra.executions.Kill
executionId: "{{ vars.targetExecutionId }}"
propagateKill: false
auth:
apiToken: "{{ secrets('KESTRA_API_TOKEN') }}"
Properties
executionId *Requiredstring
The execution ID to kill
The ID of the execution to kill. Use "" to kill the current execution.
auth Non-dynamicAbstractKestraTask-Auth
Authentication information.
kestraUrl string
Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.
propagateKill booleanstring
truePropagate kill to child executions
Whether to also kill the child executions (subflows) when this execution is killed.
tenantId string
The tenant ID to use for the request, defaults to current tenant.
Definitions
io.kestra.plugin.kestra.AbstractKestraTask-Auth
apiToken string
API token
password string
Password for HTTP basic authentication
username string
Username for HTTP basic authentication