Get
yaml
type: "io.kestra.core.tasks.states.Get"
Get a state from the state store.
Examples
Get the default state for the current flow
yaml
id: getState
type: io.kestra.core.tasks.states.Get
Get the
myState
state for the current flow
yaml
id: getState
type: io.kestra.core.tasks.states.Get
name: myState
Properties
name
- Type: string
- Dynamic: ✔️
- Required: ✔️
- Default:
default
The name of state file
errorOnMissing
- Type: boolean
- Dynamic: ✔️
- Required: ❌
- Default:
false
raise an error if the state is not found
namespace
- Type: boolean
- Dynamic: ✔️
- Required: ❌
- Default:
false
Share state for the current namespace
By default, the state is isolated by namespace and flow, setting to true
will allow to share the state between the same namespace
Outputs
count
- Type: integer
- Default:
0
The count of properties found in the state
data
- Type: object
The data extracted from state