schedr._model

Private builder API: the DAG JSON model as Python types.

These types mirror the Rust crate schedr-model, which is the reference for every shape (see archive/PROJECT.md, Rust/Python integration: shared model and schemas). Each type’s to_json() produces exactly the JSON the Rust types accept; tests validate it against the committed schema/dag.schema.json.

The native API and the compatibility layers build DAGs through this package. It isn’t user API: names and signatures may change between versions.

Modules

dag

A DAG in DAG JSON: what the runner sends after parsing a DAG file.

ids

DAG IDs and task IDs, validated with the same rules as schedr-model (ids.rs).

notify

Notifications in DAG JSON: the channels a DAG notifies, and of which events.

registry

The DAGs defined while importing DAG files, and where they are defined.

tasks

Tasks in DAG JSON (schedr-model, task.rs): kind, what they run, resolved settings.

timestamps

Timestamps in DAG JSON: always UTC, written with Z.

trigger

A DAG's trigger in DAG JSON (schedr-model, trigger.rs).

types

Type descriptors: the type of a task's output in DAG JSON.

values

References, templates and task arguments in DAG JSON (schedr-model, value.rs).

version

The schedr version that produced stored data, as major.minor.