Provision a Namespace and Wait Until Ready
A 3-step recipe with Temporal. We can help you get access.
Recipe · 3 steps
Provision a Namespace and Wait Until Ready
with Temporal · Tenant Provisioning & Lifecycle
Create a Namespace and wait for its provisioning async operation to finish.
- Create the Namespace from the supplied spec. The control plane returns the provisioned namespace identifier and an asyncOperationId to track progress.
- Poll the async operation status. The AsyncOperation.state field is checked; anything other than the in-flight pending value is treated as terminal.
- Read the provisioned Namespace to return its current state and resource version once the async operation is no longer pending.
What you'll need to have ready
- bearerToken: API key used as the Bearer token for Authorization.
- name: The Namespace name to create (e.g. my-namespace).
- region: The region id to provision the Namespace into (e.g. aws-us-east-1).
- retentionDays: Workflow execution retention period in days.
For your developer
Arazzo workflow temporal:provision-namespace, 3 operations: createNamespace → getAsyncOperation → getNamespace. Specs on APIs.io.