Expand description
The master’s checks of uploaded parse results.
The Python API already refuses wrong DAGs at parse time; the master checks again what it relies on to schedule (it never runs user code, so DAG JSON is its only view of a DAG): the version that produced it, where it is, its trigger, task IDs, edges, cycles and the references between tasks. A file with an invalid DAG is treated as a file that failed to import: its DAGs keep their last good version (see archive/PROJECT.md, DAG code delivery).
Structs§
- Checks
- What a parse’s files are checked against.
Constants§
- INVALID_
DAG_ EXCEPTION - The exception name of the import error recorded for a file with an invalid DAG.
- INVALID_
PATH_ EXCEPTION - The exception name of the import error recorded for a path outside its root.
Functions§
- connection_
problems - The connections a root’s DAGs declare checked against the root’s own (decision 179): a file declaring one that isn’t defined (or is defined twice) fails, as the attempt would. Only over a whole root’s files: one file alone doesn’t see its siblings’ connections.
- dag_
problems - What is wrong with a DAG parsed from
root:path; empty when it is valid. - output_
problems - The tasks whose output can’t reach the master: a result past its message limit
(
[grpc] max_message_size) would end the worker’s stream (B33). A command’s output holds stdout and stderr, each up to itsmax_output_size. - storage_
problems - The secret storages a DAG names that the worker that parsed it hasn’t configured (the default one, unnamed, isn’t checked).
- target_
problems - Each
TriggerDagOperatorchecked against its target, over a whole root’s files, forschedr dags checkonly (decision 398): a target in the root that doesn’t let its DAG start it (nottrigger=Chained(), orChained(by=...)not naming it) makes the operator’s file fail; a target no file defines is a warning (it may be in a root not parsed yet, decision 379). The master doesn’t: one DAG’s edit would stop another’s file loading; its task fails when it runs instead. - validate_
files - Checks the files of a parse of
root: a file whose path isn’t inside the root, or that defines an invalid DAG, gets an import error listing the problems and no DAGs.