
Execution Labels
CertifiedAdd or overwrite labels on the current execution.
Execution Labels
Add or overwrite labels on the current execution.
Accepts labels as a map, list of {key,value} pairs, or JSON string. Values are rendered, merged into existing labels, and overwrite by default.
System labels (system.*) are rejected and empty values are not allowed. Useful for tagging runs with payload metadata (customer, env, etc.).
type: io.kestra.plugin.core.execution.LabelsExamples
Add labels based on a webhook payload
id: webhook_based_labels
namespace: company.team
tasks:
- id: update_labels_with_map
type: io.kestra.plugin.core.execution.Labels
labels:
customerId: "{{ trigger.body.customerId }}"
- id: by_list
type: io.kestra.plugin.core.execution.Labels
labels:
- key: order_id
value: "{{ trigger.body.orderId }}"
- key: order_type
value: "{{ trigger.body.orderType }}"
triggers:
- id: webhook
key: order_webhook
type: io.kestra.plugin.core.trigger.Webhook
when: "{{ trigger.body.customerId is defined and trigger.body.orderId is defined and trigger.body.orderType is defined }}"
Properties
labels *stringarrayobject
Labels to add to the current execution
The value should result in a list of labels or a labelKey: labelValue map
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
{}1150