Skip to main content
EXAMPLE

Task Runner Dependencies

Demonstrates the custom-command and workflow task-runner's dependency system: dependencies.commands / dependencies.workflows (DAG execution with dedup), failfast vs besteffort sibling-dependency…

Automation
cloudposse / atmos

Try it out

Copy the example into a new directory and make it your own:

atmos init examples/task-runner-dependencies
cd task-runner-dependencies

Follow the README for prerequisites and next steps.

README.md1.5 KB
View on GitHub

Task Runner Dependencies

Demonstrates the custom-command and workflow task-runner's dependency system: dependencies.commands / dependencies.workflows (DAG execution with dedup), fail_fast vs best_effort sibling-dependency failure modes, step-level inputs/artifacts freshness checks (checksum, timestamp, and explicit CEL conditions), preconditions, the continue: always step field, native command aliases/internal commands, and constrained flag values.

Run

# Dependency graph: verify depends on compile (deduped), trd-lint, and unit-test
atmos verify

# fail_fast skips a pending slow sibling after step-b-fails fails.
# If step-c-slow has already started, it may still finish.
atmos release-failfast

# best_effort lets the slow sibling finish despite a failing sibling
atmos release-besteffort

# Command depending on a workflow
atmos deploy

# Freshness: skips its own step when src/**/*.txt is unchanged
atmos freshbuild
atmos freshbuild # second run is skipped -- inputs unchanged

Learn More

See Command Dependencies documentation.