Workflows
A workflow is a Directed Acyclic Graph (DAG) of standard Solti jobs. Each node in the graph is an ordinary workload — same images, volumes, resources, and constraints as any job — and every node runs on its own dedicated VM (1:1 workload isolation). You declare the graph once; Solti provisions nodes in dependency order, runs independent branches in parallel, and tears each node's VM down as soon as it finishes.
No orchestrator to host: the Luigi/Airflow-style workaround of containerizing a multi-step pipeline into a single workload is no longer needed — each step gets its own cost-optimized VM instead of one long-running container.
Anatomy of a Workflow
- A workflow is submitted as a list of templates. Each template pairs a node name with a standard job definition, plus optional dependencies and optional fan-out.
- A template with no
dependenciesis a root node and provisions immediately. A dependent node provisions only once all of its upstream nodes have succeeded. - Materialized node jobs are named
<workflow-name>--<node-name>(fan-out items are appended as a sanitized suffix). - Workflow status:
running→succeeded/failed/cancelled(running until every node job is terminal). Node status follows the job lifecycle:queued,booting,running,succeeded,failed,cancelled.
Workflow names share the jobs' slug rules — explicit name (unique per project, 409 Conflict on duplicate), namePrefix (generates <prefix>-<random suffix>), or an auto-generated Notion-like name (e.g. tidal-star-1234). Template names are slugs of at most 63 characters, unique within the workflow.
Submitting a Workflow
The payload is an Argo Workflows-ish templates list — deliberately simplified: no apiVersion/kind wrappers, no header/template split. Each template's job block is the standard workload specification (see Workload Specs) minus identity fields — name, namePrefix, and runAfter are rejected inside a job block, because node identity comes from the template name.
# workflow.yaml — submit with: solti workflow submit -f workflow.yaml
name: nightly-refresh # optional; unique per project (409 on duplicate)
# or namePrefix: nightly-refresh (<prefix>-<suffix>)
# or omit both for an auto-generated name
templates:
- name: extract-orders # root node — provisions immediately
job:
image: my-registry/extractor:latest
command: ["python", "extract.py"]
args: ["--table", "orders"]
env:
OUTPUT_PATH: "/mnt/data/orders.parquet"
resources:
cpu: 2
memory: 8Gi
volumes:
warehouse:
bucket: my-warehouse
mountPath: /mnt/data
- name: extract-customers # sibling root node — runs in parallel
job:
image: my-registry/extractor:latest
command: ["python", "extract.py"]
args: ["--table", "customers"]
env:
OUTPUT_PATH: "/mnt/data/customers.parquet"
volumes:
warehouse:
bucket: my-warehouse
mountPath: /mnt/data
- name: refresh-partitions # join node — waits for BOTH extracts
dependencies: [extract-orders, extract-customers]
withItems: ["orders", "customers"] # static fan-out: one node per item
job:
image: my-registry/refresher:latest
command: ["python", "refresh.py"]
args: ["--table", "{{item}}"]
labels:
table: "{{item}}"
volumes:
warehouse:
bucket: my-warehouse
mountPath: /mnt/data
The graph above declares three templates. The refresh-partitions join fans out per item, so the workflow materializes four node jobs: both extracts run in parallel, then refresh-partitions-orders and refresh-partitions-customers run once both extracts have succeeded.
Template Fields
| Field | Required | Description |
|---|---|---|
name | ✅ | Node template name (slug, ≤ 63 chars, unique within the workflow). |
job | ✅ | Standard job definition — the workload spec minus name/namePrefix/runAfter. |
dependencies | — | Upstream template names. Absent = root node that provisions immediately. |
withItems | — | Static fan-out: materializes one node per item. Mutually exclusive with withSequence. |
withSequence | — | Numeric fan-out: start/end (inclusive) and optional step (≥ 1, default 1) — one node per integer. |
Fan-Out and {{item}} Substitution
withItems takes a static list of strings; withSequence takes a numeric range. Either form materializes one node per item at submission time, substituting the literal {{item}} into string values of the template's command entries, args entries, env values, and labels values:
- name: shard-scan
dependencies: [extract-orders]
withSequence: { start: 0, end: 9 } # materializes shard-scan-0 … shard-scan-9
job:
image: my-registry/scanner:latest
command: ["python", "scan.py", "--shard", "{{item}}"]
A dependency on a fan-out template waits for all of its items to succeed. The whole workflow materializes at most 50 node jobs — a template list (or a fan-out multiplier) that exceeds the budget is rejected at submission.
Run history per cronjob
Workflows spawned by a cronjob are linked back to it. List them (paginated, with an optional status filter):
GET /1/cronjobs/{name}/workflows?status=succeeded&limit=20
Runs also appear in the standard workflows list (GET /1/workflows), where spawned entries carry a cronjob_name field. The dashboard's cron detail shows the same history.
Passing Data Between Nodes
Nodes run on separate VMs — there is no shared local disk. Hand artifacts between steps through cloud storage volumes: mount the same bucket into each node (as in the example above) and have each step read its inputs from, and write its outputs to, the bucket.
Monitoring Workflows
# List recent workflows (filter by status or name substring)
solti workflow list --status running
solti workflow list --name nightly --limit 20
# Inspect a workflow by UUID or name: status, node table, per-node costs
solti workflow get nightly-refresh
# Cancel a workflow (all non-terminal node jobs)
solti workflow cancel nightly-refresh --yes
The same surfaces exist over the REST API — POST/GET /1/workflows, GET /1/workflows/{id-or-name} (detail: every node carries depends_on, live job/VM status, error message, timings and per-node costs, plus the workflow-level aggregate cost sums) and POST /1/workflows/{id-or-name}/cancel. All workflows endpoints require a key with the developer role or higher. Full request/response schemas live in the API Reference (Workflows tag).
In the dashboard (Project → Workflows) you get the workflow list with status filter and name search, and a detail page with the DAG execution graph, a per-node table (status, VM status, timings, costs, errors), and a cancel button.
Failure Semantics
- A failed node fails its dependents. Every downstream node is marked failed with an error message explaining the upstream failure — dependents never provision a VM.
- Siblings continue. Failure propagates only along the dependency edges; independent branches keep running.
- The workflow finalizes as
failedonce no more nodes can make progress, withended_atand a workflow-level error summary. - Cancel (
POST .../cancelorsolti workflow cancel) cancels every non-terminal node — running nodes get immediate VM teardown — while already-succeeded nodes are untouched; the workflow becomescancelled. Cancelling an already-terminal workflow returns409 Conflict.
Scheduling Workflows with Cronjobs
A cronjob spawns either a single job (job_definition) or a workflow (workflow_definition) — exactly one of the two must be provided (both or neither is a 422). A workflow_definition uses the same templates payload as the API above and is spawned once per schedule tick; each spawn is an independent workflow run that appears in the standard workflows list (GET /1/workflows) and on the dashboard's Project → Workflows page.
POST /1/cronjobs
{
"name": "nightly-refresh",
"cron_spec": "0 2 * * *",
"workflow_definition": {
"templates": [
{ "name": "extract-orders", "job": { "image": "my-registry/extractor:latest", "...": "..." } }
]
}
}
The exact schema lives in the Cronjobs API; schedules can also be managed from the dashboard (Project → Cronjobs).
SDKs
Workflows are first-class in both SDKs — method naming mirrors jobs:
- Python —
client.workflows.create(templates, name=..., name_prefix=...),.get(),.list(),.cancel()— see the Python SDK. - TypeScript —
client.workflows.create/get/list/cancelwith camelCase payload keys — see the TypeScript SDK.