🚀 New! Kestra raises $3 million to grow Learn more

Get 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

taskrunValue

  • Type: boolean
  • Dynamic: ✔️
  • Required:
  • Default: true

Isolate with taskrun.value the state

By default, the taskrun.value (during iteration with each) will isolated the state, setting to false will allow to use the same one for iteration.

Outputs

count

  • Type: integer
  • Default: 0

The count of properties found in the state

data

  • Type: object

The data extracted from state