
KV Set
CertifiedCreate or update a key-value entry.
KV Set
Create or update a key-value entry.
Renders key, value, and namespace (defaults to flow namespace) and writes to the KV store. Supports TTL, description, type coercion (kvType), and overwrite control.
If kvType is set, the string value is parsed/validated accordingly (number, boolean, datetime, duration, JSON, etc.).
type: io.kestra.plugin.core.kv.SetExamples
Set the task's uri output as a value for orders_file key.
id: kv_store_set
namespace: company.team
tasks:
- id: http_download
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv
- id: kv_set
type: io.kestra.plugin.core.kv.Set
key: orders_file
value: "{{ outputs.http_download.uri }}"
kvType: STRING
Properties
key *string
The key to set the value for
value *string
The value to map to the key
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
{}1150kvDescription string
The description of the KV pair
kvType string
STRINGNUMBERBOOLEANDATETIMEDATEDURATIONJSONEnum representing the data type of the KV pair. If not set, the value will be stored as a string.
namespace string
{{ flow.namespace }}The namespace in which the KV pair will be stored – by default, Kestra will use the namespace of the flow.
overwrite booleanstring
trueFlag specifying whether to overwrite or fail if a value for the given key already exists.
ttl string
Optional Time-To-Live (TTL) duration for the key-value pair. If not set, the KV pair will never be deleted from internal storage.