Orchestration DAG
Quick answer
An orchestration DAG is a directed acyclic graph of tasks and dependencies. It determines which operations can run and which must wait for successful upstream results. Examples use standard-library Python; native Feast and Airflow are not executed. ByteMind execution is unverified.
Ready task selection
deps={"ingest":[],"validate":["ingest"],"train":["validate"]}status={"ingest":"PASS"}print([k for k,v in deps.items() if k not in status and all(status.get(d)=="PASS" for d in v)])Expected output (locally tested): ['validate']. Only successful dependencies unlock a task.
How it works
A small ML DAG can ingest a bounded source snapshot, validate schema, join features at each decision timestamp, train a model and evaluate gates. Each task receives a run identifier and explicit data interval; do not substitute the wall clock during a replay. Dependencies express required successful outputs, not merely scheduling preferences. A failed validation must block downstream training and promotion. Retries should be bounded and idempotent: repeat a fixed input snapshot without creating duplicate events or promoting partial artifacts. Publish only after all required outputs are durable and reviewed. Backfills use historical intervals and original availability records, with isolated artifact versions. A mock scheduler can use deterministic topological traversal and mark a node blocked if a required predecessor failed. Reject cycles and unknown dependencies before execution. Real orchestration systems add durable state, retries, concurrency, credentials and monitoring; this local simulation is not Airflow.
Stable interval identity
interval=(10,20)keys=[(interval,"ingest"),(interval,"ingest")]print(len(set(keys)))Expected output (locally tested): 1. The retry identity is stable for a fixed interval.
Common mistakes
A successful final logging task does not prove upstream training succeeded. Never treat a failed gate as an optional dependency just to mark the run successful.
Practice and next steps
Add an evaluation branch to the milestone and force validation failure. Verify that training and every promotion task remain blocked.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Orchestration DAG — knowledge check
Apply orchestration dag to small examples and debugging scenarios.
What does a DAG prohibit?
What should a failed schema check do?
What is an idempotent retry?
What should a backfill use?
Is this mock an Airflow deployment?