Skip to content

Workflow Releases

Package Python workflow projects into immutable releases, publish and inspect them with the CLI, and retry failed jobs with compatible fixes.

A workflow is a long-lived Tilebox object identified by a remote reference such as my-workflow. A workflow release is an immutable version of that workflow, containing the packaged Python project files, its runtime entrypoint, and the task identifiers discovered during build checks.

Publishing releases enables release runners. Instead of rebuilding or restarting runner processes when code changes, you publish a new release and deploy it to one or more clusters. Release runners on those clusters pick up the deployment automatically.

Workflow slug with multiple releases, release artifacts, and cluster deployments

Release lifecycle

The lifecycle separates code packaging from cluster rollout. Building and publishing produce immutable releases; deploying controls which release runs on each cluster.

Stage Command What changes
Initialize tilebox workflow init Scaffolds a local Python workflow project or copies a published template.
Build and check tilebox workflow build-release Packages configured files into a .tar.zst archive, starts the Python runtime, and discovers task identifiers.
Publish tilebox workflow publish-release Builds, checks, and uploads an immutable release. Creates the remote workflow on first publish.
Deploy tilebox workflow deploy-release Maps one release to one or more clusters so release runners can execute it.
Run tilebox job submit --workflow . Submits tasks scoped to the linked workflow on a target cluster.

For a full walkthrough from initialization to your first job, see Build and deploy a workflow project.

Build and check locally

Run a local build to check packaging and task discovery before uploading anything:

bash
tilebox workflow build-release

The CLI locates tilebox.workflow.toml in the current directory or a parent directory, resolves [build] include patterns, applies exclude rules and .gitignore when enabled, and writes a deterministic .tar.zst archive to the local artifact cache.

During runtime checks, the CLI starts the configured Python runtime (runner object or custom command), imports the Runner, and records its registered task names and versions. Release runners automatically scope those tasks to the workflow, so independent workflows can reuse the same task identifiers.

Keep release artifacts small

Include source code, pyproject.toml, uv.lock, and small configuration files. Keep downloaded data, model checkpoints, generated outputs, local virtual environments, and task caches out of the release.

If a task needs large runtime assets, fetch them lazily from task code into a deterministic runner-local cache such as ~/.cache/tilebox/.... The workflow should still run when a release runner starts with an empty cache.

Publish a release

Build, check, and upload an immutable release to Tilebox:

bash
tilebox workflow publish-release

For projects created with tilebox workflow init (including templates), the first publication creates the remote workflow in Tilebox and saves the local link. Later publications add releases to that same workflow. If you cloned an existing repository, link your checkout before publishing.

Publishing identical code and configuration to the same workflow reuses the existing release instead of creating a duplicate. Publishing does not change what any cluster runs until you deploy the release.

Inspect and unpublish releases

Inspect the linked workflow’s releases and deployments, or list all workflows in your organization:

bash
tilebox workflow get
tilebox workflow list

To inspect a specific workflow by reference (or a shared workflow as namespace:slug), pass its slug:

bash
tilebox workflow get <workflow-slug>

To remove a release from the workflow’s release list without deleting past jobs:

bash
tilebox workflow unpublish-release --release <release-id>

Deploy to clusters

Deploying maps a published release to one or more clusters so release runners on those clusters load and execute it:

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

Different clusters can run different releases of the same workflow, letting you test in development before promoting a pinned release ID to production. See Cluster Deployments for target configuration, explicit or default clusters, undeploying, and runner alignment.

Compatibility and retries

When a job fails because of a bug in task code, you can fix the code, publish a compatible release, deploy it to the same cluster, and retry the failed job. Tilebox resumes from the failed tasks without rerunning work that already completed.

Confirm the fix is compatible

A retry can use the fixed release when these stay stable:

  • Workflow identity: publish to the same workflow, not a new copy, so workflow-scoped task identifiers match.
  • Task identifier name: keep the same task name.
  • Task major version: keep the same major version, with a minor version greater than or equal to the version requested by the failed task.
  • Input schema: remain compatible with the serialized inputs already stored for the failed task.

When an input schema or behavior change breaks compatibility with existing tasks, bump the task’s major version and submit a new job instead.

Publish, deploy, and retry

Publish the fixed release, deploy it to the same cluster that received the original job, and retry the job. Use the exact cluster slug returned by tilebox cluster create or tilebox cluster list (such as workflow-dev-<...>):

bash
tilebox workflow publish-release
tilebox workflow deploy-release --latest --cluster <cluster-slug>
tilebox job retry <job-id>

Inspect logs and spans to confirm the retried tasks completed:

bash
tilebox job logs <job-id>
tilebox job spans <job-id>

Type to search…