Deploying a default state store
In this step, the default state store is created in the Hub (all resources reside in your own subscription).
State stores in Taskurai can be used to deliver initial state to tasks, as well as to store intermediate and final results. Tasks can interact with one or more state stores depending on their needs.
Default state store in the configuration file
taskurai-tasks-sample/Taskurai.yaml
options:
taskurai:
accountId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
instanceId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
deployment:
deploySecrets: false
state:
defaultStateStore: DefaultStateStore
hubs:
DefaultHub:
description: Default Compute and State Hub
type: External
kind: AzureManagedHub
stateStores:
DefaultStateStore:
type: DefaultStateStore
kind: Dedicated
hub: DefaultHub
environment:
- name: accountName
secretReference:
value: default
- name: storageTier
secretReference:
value: Standard_LRS
- name: containerName
secretReference:
value: default
Deploy state store to Taskurai Hub
taskurai statestore deploy
info
An initial deployment of state stores can take an average of 5 to 30 minutes.
Testing your setup
To verify that the state store has been successfully deployed to Taskurai, use the following command:
taskurai statestore show --name DefaultStateStore
When the deployment is successful, you should see output similar to the following:
# Signed into Taskurai
DefaultStateStore
├── General
│ └── ╭────────────────────┬───────────────────╮
│ │ Setting │ Value │
│ ├────────────────────┼───────────────────┤
│ │ Name │ DefaultStateStore │
│ │ Type │ DefaultStateStore │
│ │ Kind │ Dedicated │
│ │ Provisioning State │ Succeeded │
│ │ Hub │ DefaultHub │
│ ╰────────────────────┴───────────────────╯
├── Secrets
│ └── ╭─────────╮
│ │ Secrets │
│ ╰─────────╯
├── Environment
│ └── ╭───────────────┬───── ────────────┬──────────────╮
│ │ Name │ SecretReference │ Value │
│ ├───────────────┼─────────────────┼──────────────┤
│ │ accountName │ null │ default │
│ │ storageTier │ null │ Standard_LRS │
│ │ containerName │ null │ default │
│ ╰───────────────┴─────────────────┴──────────────╯
└── Scopes
└── ╭────────╮
│ Scopes │
╰────────╯