
Kestra Plugin Kill
CertifiedKill a running execution
Kestra Plugin Kill
Kill a running execution
Terminates a non-finished execution and, by default, propagates the kill to child executions. Use on active states; already terminated executions are not affected.
type: io.kestra.plugin.kestra.executions.KillExamples
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: company.team
wait: false
- id: kill
type: io.kestra.plugin.kestra.executions.Kill
runIf: "{{ inputs.shouldKill == true }}"
executionId: "{{ execution.id }}"
propagateKill: true
auth:
username: "{{ secret('KESTRA_USERNAME') }}"
password: "{{ secret('KESTRA_PASSWORD') }}"
Kill a specific execution by ID. Use "{{ execution.id }}" 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
kestraUrl: http://localhost:8080
auth:
username: "{{ secret('KESTRA_USERNAME') }}"
password: "{{ secret('KESTRA_PASSWORD') }}"
Properties
executionId *Requiredstring
Execution ID to kill
ID of the execution to kill; use {{ execution.id }} for the current one.
auth Non-dynamic
Select API authentication
Use either an API token or HTTP Basic (username/password); do not provide both.
io.kestra.plugin.kestra.AbstractKestraTask-Auth
API token for bearer auth
trueAutomatically retrieve credentials from Kestra's configuration if available
The default configuration can be configured globally inside the Kestra configuration file:
- Set
kestra.tasks.sdk.authentication.api-tokento use an API token - Set
kestra.tasks.sdk.authentication.usernameandkestra.tasks.sdk.authentication.passwordfor HTTP basic authentication - Set
kestra.tasks.sdk.authentication.urlto also default the Kestra API endpoint (seekestraUrlabove) The Enterprise edition also provides setting a default configuration at the Namespace or Tenant level by an administrator. Set to false to also opt out of the default URL.
Password for HTTP Basic auth
Username for HTTP Basic auth
kestraUrl string
Override Kestra API endpoint
URL used for calls to the Kestra API. When null, falls back to the url configured alongside the default SDK authentication (Namespace or Tenant level, Enterprise edition), then renders {{ kestra.url }} from configuration; if still empty, defaults to http://localhost: 8080. Trailing slashes are stripped before use.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
propagateKill booleanstring
truePropagate kill to child executions
Defaults to true. When true, also kills subflow executions.
tenantId string
Override target tenant
Tenant identifier applied to API calls; defaults to the current execution tenant.