For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a Workflow

Define, apply, and verify a Workflow resource.

Before you begin

Ensure you have a Compute resource and permission to use it.

You also need a stack that supports Workflow execution. For permission details, see Workflow: Access control.

Create a Workflow

Create a Workflow in four steps:

  1. Design the DAG.

  2. Add runtime settings for each step.

  3. Apply the manifest.

  4. Verify the run.

1

Design the DAG

Define each step in spec.dag. A step runs one unit of work.

Use depends to define execution order. Omit depends for independent steps.

Use a single step for simple jobs. Add dependent steps for staged work.

See Field reference for the complete Workflow manifest field reference, including DAG and step-level runtime fields.

2

Add runtime settings

For each step, define these settings:

  • spec.dag[].spec.compute

  • spec.dag[].spec.stack

  • spec.dag[].spec.stackSpec

Add resources to control CPU and memory. Add use.projection to each step's spec (spec.dag[].spec.use.projection) for secrets or configuration. Add use.volumes when steps share files.

Set spec.schedule to run automatically. Omit it for on-demand execution.

3

Apply the manifest

Save the manifest as workflow.yaml. Then apply it:

dataos-ctl resource apply -f workflow.yaml
4

Verify the run

Check the Workflow details:

dataos-ctl resource get -t workflow -n ${{workflow-name}} -d

Check runtime details:

dataos-ctl resource runtime get -t workflow -n ${{workflow-name}}

Inspect logs when a step fails or needs validation:

dataos-ctl resource log -t workflow -n ${{workflow-name}}

Next steps

Use Core concepts to learn DAGs, schedules, stacks, projections, and storage.

Use Example for end-to-end Workflow manifests.

Use Field reference for complete manifest fields.

Last updated

Was this helpful?