schedr
An open-source job orchestrator written in Rust for running Python scripts, Bash processes, and Python DAGs.
DAGs are defined using schedr's own Python API, but also other schedulers compatibility layers.
from datetime import timedelta
from schedr import CommandOperator, Cron, Dag, TaskDefaults, dag_ctx, task
with Dag(
"sync_customers",
trigger=Cron("0 3 * * *", tz="Europe/Warsaw", start="2026-01-01"),
defaults=TaskDefaults(retries=2, retry_delay=timedelta(minutes=5)),
):
@task
def extract() -> list[dict[str, str]]:
return [{"id": "1", "name": "Ada"}, {"id": "2", "name": "Grace"}]
@task(timeout=timedelta(minutes=10))
def load(rows: list[dict[str, str]]) -> int:
print(f"loading {len(rows)} customers")
return len(rows)
rows = extract() # Output[list[dict[str, str]]]
count = load(rows) # load depends on extract (data flow)
CommandOperator( # depends on load: its command uses `count`
"notify",
command=["echo", t"synced {count} customers for {dag_ctx.run.planned_for}"],
)
(examples/sync.py; Python 3.14, for the t-string.)
Status
0.1.0 is a preview (pip install schedr; CHANGELOG.md). Until 1.0.0 the
database schema and the protocol between schedr's processes change in place: a new 0.x
version needs a fresh database, with no upgrade path. Done: M1 to M4.5 of PLAN.md
(standalone and distributed, the fork server, the web UI, the native API up to run
parameters). Next: the rest of the native API (M4: secrets and connections, cleanup and
resources, sensors and triggers, ...), batched worker messages (M4B), then 1.0.0. The Airflow
layer is M5. See PLAN.md and the roadmap in PROJECT.md.
What works today:
-
The native API:
Dag,@task(Python),CommandOperator,EmptyOperator, data flow between tasks,>>andchain,Cron/Every/Onceand presets,TaskDefaults(retries, timeouts, queues),dag_ctx. -
Testing DAGs:
schedr dags check,schedr dags test, andschedr.testing(run_dag,task_context) for pytest. -
One process or separate roles:
schedr standalone(master, webserver and one worker, SQLite or Postgres; for production in one pod too), orschedr master,schedr workerandschedr webserveras separate processes on Postgres, with mTLS between them. -
Surviving failures: workers keep running tasks while the master restarts; a worker's journal survives its restarts; drains on SIGTERM; a standby master takes over through a lease in the database; retries by rule (see the guide, "State and failures").
-
Operations: the REST API (
/api/v1, Swagger UI at/api/v1/docs/) used by the CLI (dags,runs,tasks,workers); task logs through the webserver; a memory watchdog per task;/healthz,/readyzand Prometheus/metricson an ops port. -
Kubernetes: images (
schedrwith Python for workers and standalone,schedr-serverwithout Python for the master and webserver) and a Helm chart (charts/schedr: standalone or distributed, git-sync or DAGs from values, Istio, Vault), tested on kind. -
Web UI:
schedr ui(in standalone too): DAGs, runs and their graphs, logs and outputs live, actions with confirmations, several deployments in one UI.
Documentation
Online at https://ptutak.github.io/schedr/ (the latest release).
make docs builds the site into site/ (make docs-serve serves it at
http://localhost:8765). Its sections:
- Overview (this file).
- Writing DAGs (
docs/02-dags/): the native API, with tested examples. - How schedr works (
docs/03-guide/): the running system, failures, deployment. - Reference, generated from the code: configuration, CLI, REST API, metrics.
- Design:
PROJECT.md, the decision log, one page per chapter. - Plan:
PLAN.md. - API: Python (from docstrings) and Rust (rustdoc).
Installing
pip install schedr # Python 3.14; add [pydantic] for Pydantic models
Wheels for Linux x86_64 (glibc and musl), Linux aarch64 and macOS arm64; each carries the
schedr binary, so there is nothing to compile. 0.x is a preview: a new 0.x version needs a
fresh database (CHANGELOG.md). The images, x86_64: ghcr.io/ptutak/schedr (Python and
the package: standalone and workers, the base for your own image) and
ghcr.io/ptutak/schedr-server (the binary alone: master, webserver and UI), tagged with the
version (0.1.0) and its series (0.1); there is no latest, since 0.2 won't read 0.1's
database.
Trying it
make standalone # schedr standalone on the DAGs of examples/, SQLite in .schedr/, API on :8080
make standalone-separate-ui # two standalones without a UI (the first with a standby master) and one `schedr ui` over both, on :8082
Then, from another shell: schedr dags list, schedr dags unpause sync_customers,
schedr runs trigger sync_customers, schedr runs list sync_customers (the CLI talks to
http://localhost:8080 unless --server or SCHEDR_SERVER says otherwise). After
make standalone-separate-ui the pages are on port 8082; the CLI still uses main's API
on 8080. DAGS=<directory> runs other DAGs;
LISTEN=127.0.0.1 keeps the API off the network (it has no authentication yet).
Layout
crates/
schedr-model/ # shared model: DAG JSON, states, JSON Schema
schedr-proto/ # Protobuf + gRPC, master <-> worker agent
schedr-config/ # configuration loading and validation
schedr-db/ # schema, migrations, queries (SQLite, Postgres)
schedr-master/ # scheduling loop, DAG validation, commands, the lease
schedr-agent/ # worker agent: processes, journal, memory watchdog, log endpoint
schedr-api/ # webserver: REST API, Swagger UI, log proxy
schedr-tls/ # mTLS on the internal links: certificates, reloading, handshakes
schedr/ # the binary: roles, user CLI, in-task CLI
src/<module>.rs # code
src/<module>/tests.rs # its unit tests
tests/ # integration tests; tests/stress/ is the stress suite
xtask/ # development tasks: schema, the docs' generated pages
python/
schedr/ # the Python package: the native API, the runner, schedr.testing
tests/unit/schedr/ # unit tests mirroring the package: test_<module>.py
tests/integration/
examples/ # example DAGs with their tests; examples/docs/ for the docs' examples
schema/ # generated from schedr-model, committed (make schema)
docs/ # the hand-written pages (02-dags, 03-guide, 05-design); the rest generated
charts/schedr/ # the Helm chart
images/ # Dockerfiles: schedr (with Python), schedr-server (without)
scripts/ # smoke tests; kind-*.sh cluster checks (standalone, mesh, distributed, kill)
Design decisions: PROJECT.md. Implementation plan: PLAN.md. Open
bugs: BUGS.md.
Development
Requirements: Rust (stable, via rustup), uv, make; Podman or
Docker for the integration tests (Postgres) and the images; kind, kubectl and Helm for the
cluster scripts. make setup also installs cargo-nextest, cargo-llvm-cov and the
llvm-tools-preview component.
make setup # dev tools, uv sync, pre-commit hooks
make fmt # format Rust + Python
make lint # clippy, ruff, mypy
make test # unit tests: Rust (nextest) + pytest, both with an 85 % coverage floor
make test-integration # real processes, the binary, Postgres in a container
make schema # regenerate schema/ from the Rust model (CI fails if it's stale)
make docs # build the documentation site into site/ (fails on any warning)
make check # everything CI runs
make stress # the stress suite (STRESS_PROFILE=quick|full)
make smoke # build the release wheel and smoke-test it
make image # the schedr image (make server-image: schedr-server), smoke-tested
make chart-check # lint and render the Helm chart
make help # every target
Metadata
Release files for schedr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| schedr-0.1.0-py3-none-musllinux_1_2_x86_64.whl | Python 3 | none | Linux musl 1.2+ x86-64 | Details for schedr-0.1.0-py3-none-musllinux_1_2_x86_64.whl |
| schedr-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for schedr-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| schedr-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for schedr-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| schedr-0.1.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for schedr-0.1.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 87.4 MB
Release files / schedr-0.1.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | schedr-0.1.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 23.0 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
598fb5a2dee21fe214b6afa2117e2da97e24fdb1681320be1515a0f4286b57e2
|
|
BLAKE2b-256 checksum How to use checksums |
5ff54946dfebc45ede2190ddccc884ac37a619b1690c2502bb56c5e3dbc70d87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / schedr-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | schedr-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 22.0 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
44d9c966e416a292913805e154de6eb737f79fab61975f5be919a58bc287465c
|
|
BLAKE2b-256 checksum How to use checksums |
ba29f7d8005e05845791d3adb482e30e21934a654facce9a2571da3661e62fdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / schedr-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | schedr-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 22.2 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
fde5b926001900b56931f90f1537d112bf936e366b77d6ce401adf774805cc6d
|
|
BLAKE2b-256 checksum How to use checksums |
9d57f9ddaf391e427e843bcc1d5af0e2656cd9a9cfff93a1fac68c7dbf6d41c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / schedr-0.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | schedr-0.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 20.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3e06e6d659118704b716f98a00e344164fbd31e489d64b208121d609d162952e
|
|
BLAKE2b-256 checksum How to use checksums |
cfb7aa01dd6488e5bb3ec5ccf8fa2ba03b4b36c9a239d699865d3eba0fd6dff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for schedr 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for schedr-0.1.0-py3-none-musllinux_1_2_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.