schedr
A job scheduler written in Rust that runs Python DAGs, Python scripts and shell commands: a native Python API for DAGs, one binary for the scheduler, its web UI and its workers, SQLite on a laptop and Postgres in production.
Documentation: https://ptutak.github.io/schedr/ · Source: https://github.com/ptutak/schedr
Install
Python 3.14 or newer, in a virtual environment of a project directory:
mkdir my-schedr && cd my-schedr
python3.14 -m venv .venv
.venv/bin/pip install schedr # add [pydantic] for Pydantic models
The wheel carries the schedr binary (Linux x86_64 and aarch64, macOS arm64): nothing to
compile.
Run it
Put a DAG in dags/sync.py:
from datetime import timedelta
from schedr import CommandOperator, Cron, Dag, StepDefaults, dag_ctx, task
with Dag(
"sync_customers",
description="Syncs customers daily at 03:00 Warsaw time: extract, load, notify.",
trigger=Cron("0 3 * * *", tz="Europe/Warsaw", start="2026-01-01"),
defaults=StepDefaults(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}"],
)
Start schedr (the scheduler, the web UI and one worker, in one process, on SQLite), watching
the dags folder:
.venv/bin/schedr standalone --migrate --dag-path dags
The web UI is at http://127.0.0.1:8080/. In a second terminal:
.venv/bin/schedr dags list # sync_customers, paused
.venv/bin/schedr runs trigger sync_customers # a manual run
.venv/bin/schedr runs list sync_customers
.venv/bin/schedr dags unpause sync_customers # daily at 03:00 from now on
Ctrl-C stops it; the next start keeps the DAGs, runs and logs
(~/.local/share/schedr).
Next
- Getting started: these steps, explained
- Writing DAGs: tasks, data flow,
schedules, retries;
schedr dags checkandschedr dags testwithout a server - How schedr works: the life of a run, the master and workers, failures, the web UI and its Metrics page
- Deployment: the images and the Helm chart, Postgres, separate roles, a standby master
- Changelog
Metadata
Release files for schedr 1.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-1.1.0-py3-none-musllinux_1_2_x86_64.whl | Python 3 | none | Linux musl 1.2+ x86-64 | Details for schedr-1.1.0-py3-none-musllinux_1_2_x86_64.whl |
| schedr-1.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-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| schedr-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for schedr-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| schedr-1.1.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for schedr-1.1.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 127.2 MB
Release files / schedr-1.1.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | schedr-1.1.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 33.4 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
3d9c0159463976af5b70c03cb6c1627b88bb0e5e3023427f7a56427df9220b53
|
|
BLAKE2b-256 checksum How to use checksums |
dfd880b1a2fecaa632c895e41bc0b72bd3b89e1e4170e040b273579f96689b62
|
| 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 16, 2026.
Transparency logRelease files / schedr-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | schedr-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 32.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b5bac49c7759a8d6198da71f26efada2f2ff914b76daccd697dcb2b82d08bfe7
|
|
BLAKE2b-256 checksum How to use checksums |
7203051bf72f3cdcaa1d77d406d593f248d3199988c328460399705840747ee1
|
| 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 16, 2026.
Transparency logRelease files / schedr-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | schedr-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 32.2 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
46201c74b94dab9df27adea756912a9e3210263ad06970f2f4d45370eb14fd3b
|
|
BLAKE2b-256 checksum How to use checksums |
1e0ff57480e446bed89e8f90a1b534b8cc1452f52e9f4119d69f1900850a6cd6
|
| 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 16, 2026.
Transparency logRelease files / schedr-1.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | schedr-1.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 29.5 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d222425eeb3a31c76a915e5f265172ea4dce7d45faa13beab9e8f94d6e115ea3
|
|
BLAKE2b-256 checksum How to use checksums |
45cbc8c9b77712b7275cd8807dfa212ddbbda2385229217cd1d0c56ab6059fbe
|
| 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 16, 2026.
Transparency logSecurity for schedr 1.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-1.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 16, 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.