Skip to main content

schedr_model/
lib.rs

1//! Shared model of schedr: DAG JSON, run and task states, and the JSON Schema generated from them.
2//!
3//! These Rust types are the reference for every shape that crosses a process boundary (see
4//! archive/PROJECT.md, Rust/Python integration: shared model and schemas). The Python package
5//! writes DAG JSON by hand-written code that is validated against the schema generated from here.
6
7pub mod beat;
8pub mod commands;
9pub mod connection;
10pub mod ctx;
11pub mod dag;
12pub mod ids;
13pub mod logs;
14pub mod metric_doc;
15pub mod notify;
16pub mod params;
17pub mod runner;
18pub mod schema;
19pub mod secret;
20pub mod states;
21pub mod task;
22pub mod trigger;
23pub mod types;
24pub mod usage;
25pub mod value;
26pub mod version;
27
28pub use connection::ConnectionDef;
29pub use dag::{Dag, DagLocation, Edge, EdgeKind, Group, Params, Resource, ResourceState};
30pub use ids::{DagId, EventName, IdError, TaskId};
31pub use notify::{
32    Body, ChannelRef, NotifyEntry, NotifyEvent, Part, PathKey, Placeholder, Ref, WebhookChannel,
33};
34pub use secret::{SecretDecl, SecretName};
35pub use states::{
36    AttemptStatus, CleanupResult, RetryRule, RunKind, RunState, TaskInstanceState, WorkerState,
37};
38pub use task::{
39    CommandLine, DEFAULT_OUTCOME, Expand, Mapped, OutcomeDecl, ResourceRole, RunIf, SensorMode,
40    Task, TaskKind, TaskSettings, default_outcomes,
41};
42pub use trigger::{RunEvent, Trigger};
43pub use types::{Field, TypeDesc};
44pub use value::{
45    DagCtxField, Encoding, PathElem, Reference, Template, TemplatePart, TemplateRef, Value,
46};
47pub use version::{SchedrVersion, VersionError};