Skip to content

Cluster Deployments

Map published workflow releases to clusters with the CLI and control what release runners execute.

A cluster deployment maps one published workflow release to one cluster. It controls which workflow code release runners on that cluster load and execute.

Creating, updating, or removing a deployment does not submit a job, start a runner, delete a release, or change past jobs. Running release runners observe deployment changes automatically and update their active task registrations.

Deployment rules

  • One active release per workflow per cluster. Deploying a new release of the same workflow replaces the previous mapping on that cluster.
  • Multiple workflows per cluster. A single cluster can hold active deployments from multiple workflows at the same time.
  • Same release across clusters. One release can be deployed to any number of clusters, so you can promote a tested release from development to production without rebuilding.

Deploy a release

From a linked workflow project directory, omit --workflow to use the local project’s workflow, or pass --workflow <slug> (or namespace:slug for a shared workflow).

Default cluster

Every organization has a default cluster. Omit --cluster and --target to deploy to it:

bash
tilebox workflow deploy-release --latest

Explicit clusters

Pass one or more cluster slugs (returned by tilebox cluster create or tilebox cluster list) with --cluster. Pin an explicit --release ID for production environments so the active version is traceable:

bash
tilebox workflow deploy-release \
  --release <release-id> \
  --cluster <prod-cluster-slug>

Deploy to multiple clusters at once with a comma-separated list:

bash
tilebox workflow deploy-release \
  --workflow <workflow-slug> \
  --release <release-id> \
  --cluster <cluster-a-slug>,<cluster-b-slug>

Named targets

Use --target to deploy to a named cluster group defined in [targets.<name>] in tilebox.workflow.toml:

bash
tilebox workflow deploy-release --latest --target dev

The same release is deployed to every cluster listed in the target.

Shared workflows

Deploy a shared workflow to your own cluster using its namespace:slug reference:

bash
tilebox workflow deploy-release \
  --workflow <namespace>:<slug> \
  --latest \
  --cluster <cluster-slug>

Remove a deployment

Undeploying removes the active release mapping from the selected cluster or target. It does not delete the workflow, release artifact, or past jobs; release runners stop claiming new tasks for that workflow.

bash
# Undeploy the linked workflow from the default cluster
tilebox workflow undeploy-release

# Undeploy from a configured target
tilebox workflow undeploy-release --target dev

# Undeploy a specific release from explicit clusters
tilebox workflow undeploy-release \
  --workflow <workflow-slug> \
  --release <release-id> \
  --cluster <cluster-a-slug>,<cluster-b-slug>

Omit --release to remove whichever release of that workflow is currently deployed on the selected clusters.

Verify cluster alignment

Deployment alone does not execute tasks. You must also run at least one release runner on the target cluster and submit jobs targeting both the workflow and the same cluster:

bash
tilebox runner start --cluster <cluster-slug>

If a submitted job stays queued, confirm all four match:

  1. Deployment cluster: the workflow release is deployed to <cluster-slug>.
  2. Runner cluster: a release runner is running with --cluster <cluster-slug>.
  3. Job cluster: the job was submitted to --cluster <cluster-slug>.
  4. Workflow selection: the job selected the workflow (--workflow . from the project directory, or --workflow <reference> elsewhere) and a compatible task name and version.

Type to search…