schedr¶

Python API for the schedr scheduler.

Define DAGs with with Dag(...), Python tasks with @task, and other tasks with the operators; pass outputs between tasks as arguments (see archive/PROJECT.md, Native API).

Modules

api

schedr's REST API from Python (M4.11h): events posted and listed.

chained

TriggerDagOperator starts a run of another DAG; Chained lets it (decisions 357-365, 398).

connection_types

The built-in connection types: one definition for every kind of task (decisions 174, 183).

connections

Connections (archive/PROJECT.md, Connections; decisions 53 and 174): what a task connects to.

context

The run's context, dag_ctx, and the running task's own, task_ctx.

dag

Dag, the context manager that defines a DAG, and StepDefaults.

event_triggers

Event triggers: @trigger and @trigger.poke, whose events start a DAG's runs.

first_of(-> A | B -> tuple[A | B, ...)

A node that ends as soon as one of these tasks has succeeded, with its value.

groups

Task groups: with group("load") as load: (see archive/PROJECT.md, Native API: task groups).

named_events

Events posted through the API: EventNamed (decision 354).

notify

Notifications (decisions 408, 409, 417-423): which channels a DAG tells of which events.

operators

Operators: the task kinds other than Python functions.

outcomes

Outcomes: which kind of success a task had, and what routes on it (.on(...)).

pydantic

schedr.pydantic.Model: the base of Pydantic outcome models (needs Pydantic installed).

resources

Resources: one thing of two parts, a setup and its cleanup (decision 259).

run_of

Waiting for a run of another DAG: RunOf and wait_for (decision 353).

runner

The Python runner: <interpreter> -m schedr.runner {parse,task}.

script

Plain Python scripts in a command task: the same dag_ctx as a Python task.

sensors

Wait steps: @sensor and @sensor.poke.

tasks

@task: Python tasks, and Output, the reference a task call returns.

testing

Testing DAGs: task functions with a run context, and whole runs inspected task by task.

triggers

Triggers: what starts runs of a DAG, Dag(trigger=...).

types

Types for task outputs: ProcessResult, the Json alias, and size constants.