fromscratch-pyscheduler 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fromscratch_pyscheduler-0.5.0.dist-info/METADATA +299 -0
- fromscratch_pyscheduler-0.5.0.dist-info/RECORD +163 -0
- fromscratch_pyscheduler-0.5.0.dist-info/WHEEL +4 -0
- fromscratch_pyscheduler-0.5.0.dist-info/entry_points.txt +3 -0
- fromscratch_pyscheduler-0.5.0.dist-info/licenses/LICENSE +21 -0
- pyscheduler/__init__.py +6 -0
- pyscheduler/__main__.py +8 -0
- pyscheduler/_version.py +24 -0
- pyscheduler/agents/__init__.py +25 -0
- pyscheduler/agents/book.py +210 -0
- pyscheduler/agents/cli.py +207 -0
- pyscheduler/agents/hub.py +399 -0
- pyscheduler/agents/hub_link.py +279 -0
- pyscheduler/agents/journal.py +231 -0
- pyscheduler/agents/log_messages.py +158 -0
- pyscheduler/agents/logsource.py +296 -0
- pyscheduler/agents/messages.py +358 -0
- pyscheduler/agents/orphans.py +93 -0
- pyscheduler/agents/placement.py +96 -0
- pyscheduler/agents/remote_handle.py +107 -0
- pyscheduler/agents/signing.py +200 -0
- pyscheduler/agents/worker.py +342 -0
- pyscheduler/agents/worker_files.py +101 -0
- pyscheduler/agents/worker_reports.py +144 -0
- pyscheduler/alerts/__init__.py +5 -0
- pyscheduler/alerts/deadlines.py +133 -0
- pyscheduler/alerts/delivery.py +285 -0
- pyscheduler/alerts/dispatch.py +274 -0
- pyscheduler/alerts/model.py +62 -0
- pyscheduler/alerts/monitor.py +322 -0
- pyscheduler/alerts/raising.py +137 -0
- pyscheduler/alerts/routing.py +54 -0
- pyscheduler/api/__init__.py +27 -0
- pyscheduler/api/access.py +247 -0
- pyscheduler/api/admin.py +239 -0
- pyscheduler/api/agents.py +55 -0
- pyscheduler/api/alerts.py +162 -0
- pyscheduler/api/app.py +118 -0
- pyscheduler/api/auth.py +267 -0
- pyscheduler/api/jobs.py +208 -0
- pyscheduler/api/runs.py +270 -0
- pyscheduler/api/serialize.py +360 -0
- pyscheduler/api/session_key.py +78 -0
- pyscheduler/api/support.py +217 -0
- pyscheduler/api/users.py +169 -0
- pyscheduler/calendars.py +108 -0
- pyscheduler/cli.py +259 -0
- pyscheduler/cli_alerts.py +87 -0
- pyscheduler/cli_commands.py +316 -0
- pyscheduler/cli_format.py +115 -0
- pyscheduler/client.py +329 -0
- pyscheduler/config/__init__.py +50 -0
- pyscheduler/config/agent_fields.py +94 -0
- pyscheduler/config/agent_secrets.py +110 -0
- pyscheduler/config/agents_model.py +34 -0
- pyscheduler/config/alert_fields.py +248 -0
- pyscheduler/config/calendar_fields.py +86 -0
- pyscheduler/config/calendar_inheritance.py +79 -0
- pyscheduler/config/fields.py +319 -0
- pyscheduler/config/job_fields.py +365 -0
- pyscheduler/config/loader.py +343 -0
- pyscheduler/config/model.py +396 -0
- pyscheduler/config/redaction.py +64 -0
- pyscheduler/config/run_dates.py +197 -0
- pyscheduler/config/schedule_fields.py +172 -0
- pyscheduler/config/settings_fields.py +96 -0
- pyscheduler/config/source_ref.py +13 -0
- pyscheduler/config/validate.py +368 -0
- pyscheduler/config/validate_agents.py +77 -0
- pyscheduler/config/validate_alerts.py +53 -0
- pyscheduler/config/validate_templates.py +68 -0
- pyscheduler/config/watch_fields.py +94 -0
- pyscheduler/demo.py +308 -0
- pyscheduler/demo_agents.py +293 -0
- pyscheduler/demo_config.py +153 -0
- pyscheduler/engine/__init__.py +6 -0
- pyscheduler/engine/action_support.py +285 -0
- pyscheduler/engine/actions.py +321 -0
- pyscheduler/engine/admission.py +233 -0
- pyscheduler/engine/adopted.py +297 -0
- pyscheduler/engine/attempts.py +350 -0
- pyscheduler/engine/base.py +399 -0
- pyscheduler/engine/clock.py +253 -0
- pyscheduler/engine/core.py +377 -0
- pyscheduler/engine/creation.py +242 -0
- pyscheduler/engine/deps.py +101 -0
- pyscheduler/engine/hooks.py +129 -0
- pyscheduler/engine/launcher.py +361 -0
- pyscheduler/engine/locks.py +103 -0
- pyscheduler/engine/model.py +189 -0
- pyscheduler/engine/outcomes.py +80 -0
- pyscheduler/engine/recovery.py +375 -0
- pyscheduler/engine/reload.py +230 -0
- pyscheduler/engine/remote.py +389 -0
- pyscheduler/engine/retention.py +158 -0
- pyscheduler/engine/runbook.py +274 -0
- pyscheduler/engine/status_note.py +127 -0
- pyscheduler/engine/watch_runs.py +163 -0
- pyscheduler/engine/watcher.py +235 -0
- pyscheduler/fake_hub.py +353 -0
- pyscheduler/minder.py +368 -0
- pyscheduler/notifiers/__init__.py +11 -0
- pyscheduler/notifiers/base.py +134 -0
- pyscheduler/notifiers/email.py +144 -0
- pyscheduler/notifiers/local.py +139 -0
- pyscheduler/notifiers/threads.py +78 -0
- pyscheduler/notifiers/web.py +194 -0
- pyscheduler/py.typed +0 -0
- pyscheduler/schedule/__init__.py +1 -0
- pyscheduler/schedule/cron.py +233 -0
- pyscheduler/schedule/firings.py +264 -0
- pyscheduler/schedule/forecast.py +174 -0
- pyscheduler/schedule/local.py +46 -0
- pyscheduler/schedule/specs.py +203 -0
- pyscheduler/service.py +398 -0
- pyscheduler/service_agents.py +88 -0
- pyscheduler/service_parts.py +150 -0
- pyscheduler/store/__init__.py +11 -0
- pyscheduler/store/alert_store.py +261 -0
- pyscheduler/store/attempt_reads.py +36 -0
- pyscheduler/store/config_reads.py +51 -0
- pyscheduler/store/duration_reads.py +82 -0
- pyscheduler/store/schema.py +396 -0
- pyscheduler/store/staging.py +40 -0
- pyscheduler/store/store.py +368 -0
- pyscheduler/store/writer.py +173 -0
- pyscheduler/templates.py +109 -0
- pyscheduler/testing.py +146 -0
- pyscheduler/ui/__init__.py +70 -0
- pyscheduler/ui/admin.py +237 -0
- pyscheduler/ui/agents_page.py +102 -0
- pyscheduler/ui/board.py +167 -0
- pyscheduler/ui/board_view.py +362 -0
- pyscheduler/ui/config_diff.py +100 -0
- pyscheduler/ui/dates.py +42 -0
- pyscheduler/ui/detail.py +149 -0
- pyscheduler/ui/detail_view.py +389 -0
- pyscheduler/ui/forecast_page.py +100 -0
- pyscheduler/ui/graph.py +350 -0
- pyscheduler/ui/graph_layout.py +208 -0
- pyscheduler/ui/html.py +134 -0
- pyscheduler/ui/layout.py +159 -0
- pyscheduler/ui/live.py +292 -0
- pyscheduler/ui/login.py +105 -0
- pyscheduler/ui/logtail.py +235 -0
- pyscheduler/ui/sparkline.py +58 -0
- pyscheduler/ui/static/actions.js +127 -0
- pyscheduler/ui/static/admin.js +97 -0
- pyscheduler/ui/static/agents.js +57 -0
- pyscheduler/ui/static/app.css +271 -0
- pyscheduler/ui/static/app.js +20 -0
- pyscheduler/ui/static/board.js +192 -0
- pyscheduler/ui/static/common.js +200 -0
- pyscheduler/ui/static/log.js +159 -0
- pyscheduler/ui/templates/login.html +17 -0
- pyscheduler/ui/templates/page.html +22 -0
- pyscheduler/ui/timeline.py +350 -0
- pyscheduler/ui/timeline_window.py +119 -0
- pyscheduler/values.py +100 -0
- pyscheduler/yamlish/__init__.py +9 -0
- pyscheduler/yamlish/_scalars.py +291 -0
- pyscheduler/yamlish/nodes.py +50 -0
- pyscheduler/yamlish/parser.py +313 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: fromscratch-pyscheduler
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: An educational Autosys/Control-M style job scheduler built from scratch in Python
|
|
5
|
+
Project-URL: Homepage, https://github.com/robcox2910/pyscheduler
|
|
6
|
+
Project-URL: Repository, https://github.com/robcox2910/pyscheduler
|
|
7
|
+
Project-URL: Issues, https://github.com/robcox2910/pyscheduler/issues
|
|
8
|
+
Project-URL: Documentation, https://robcox2910.github.io/pyscheduler/
|
|
9
|
+
Author: Rob Cox
|
|
10
|
+
License: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: cron,education,jobs,scheduler
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Education
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Topic :: Education
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.14
|
|
22
|
+
Requires-Dist: fromscratch-pydb>=0.5.0
|
|
23
|
+
Requires-Dist: fromscratch-pymq>=0.5.0
|
|
24
|
+
Requires-Dist: fromscratch-pynet>=0.2.0
|
|
25
|
+
Requires-Dist: fromscratch-pyweb>=0.4.0
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: commitizen>=4.4.0; extra == 'dev'
|
|
28
|
+
Requires-Dist: hypothesis>=6.170; extra == 'dev'
|
|
29
|
+
Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
|
|
30
|
+
Requires-Dist: pre-commit>=4.0.1; extra == 'dev'
|
|
31
|
+
Requires-Dist: pyright>=1.1.400; extra == 'dev'
|
|
32
|
+
Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: pytest-timeout>=2.3.1; extra == 'dev'
|
|
34
|
+
Requires-Dist: pytest>=8.3.4; extra == 'dev'
|
|
35
|
+
Requires-Dist: ruff>=0.9.3; extra == 'dev'
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
# PyScheduler
|
|
39
|
+
|
|
40
|
+
An educational Autosys / Control-M style job scheduler, built from scratch
|
|
41
|
+
in Python on our own libraries: [pynet](https://github.com/robcox2910/pynet)
|
|
42
|
+
(event loop and processes), [pyweb](https://github.com/robcox2910/pyweb)
|
|
43
|
+
(web server) and [pydb](https://github.com/robcox2910/pydb) (journalled
|
|
44
|
+
database). From v0.2, alerts and remote agents also use
|
|
45
|
+
[pymq](https://github.com/robcox2910/pymq) (message broker).
|
|
46
|
+
|
|
47
|
+
## What It Is
|
|
48
|
+
|
|
49
|
+
A school runs on a timetable: maths at nine, lunch at twelve, and the
|
|
50
|
+
science lab only once the kit is out. PyScheduler is that timetable for
|
|
51
|
+
computer jobs. You describe your jobs in a YAML file and it:
|
|
52
|
+
|
|
53
|
+
- fires them on cron-style schedules, in their own time zones, on business
|
|
54
|
+
calendars with holidays, through clock changes;
|
|
55
|
+
- waits for dependencies (on success, on failure or on any ending), and
|
|
56
|
+
works out which business day each run is for;
|
|
57
|
+
- retries failures with growing waits, times jobs out, and keeps to a
|
|
58
|
+
global cap and named pools;
|
|
59
|
+
- runs every attempt under a small **minder** process that writes down how
|
|
60
|
+
it ended, so a crash of the scheduler loses nothing: on restart it
|
|
61
|
+
recovers, adopts what is still running and catches up what it missed;
|
|
62
|
+
- saves everything write-ahead to a journalled store, in group commits;
|
|
63
|
+
- lets operators hold, release, kill, rerun, force and backfill runs over a
|
|
64
|
+
JSON HTTP API with bearer tokens, or with the `pysched` command line;
|
|
65
|
+
- forecasts what will run, and checks a config for every mistake before it
|
|
66
|
+
ever runs.
|
|
67
|
+
|
|
68
|
+
It is concurrent: one event loop looks after every running job. In a test,
|
|
69
|
+
200 real jobs started together and finished in about 3 s; about 35 are
|
|
70
|
+
alive at any instant, because each attempt pays a Python start-up for its
|
|
71
|
+
minder. Through it all, 99 % of the loop's 10 ms ticks are less than
|
|
72
|
+
50 ms late.
|
|
73
|
+
|
|
74
|
+
## Quick Start
|
|
75
|
+
|
|
76
|
+
Needs Python 3.14 and [uv](https://docs.astral.sh/uv/). POSIX only.
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
uv sync --all-extras
|
|
80
|
+
uv run pysched validate examples/etl.yaml # check the example config
|
|
81
|
+
uv run pysched serve examples/etl.yaml # start the scheduler (leave it running)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
In another terminal:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
uv run pysched trigger extract --run-date 2026-10-16
|
|
88
|
+
uv run pysched trigger fetch-rates --run-date 2026-10-16
|
|
89
|
+
uv run pysched status --date 2026-10-16
|
|
90
|
+
uv run pysched log fetch-rates.2026-10-16.1 --attempt 1 --stderr
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
`examples/etl.yaml` is a small nightly chain on a UK business calendar:
|
|
94
|
+
`extract` then `transform`, and a flaky `fetch-rates` that fails its first
|
|
95
|
+
attempt and succeeds on the retry, all feeding `load` (which shares a
|
|
96
|
+
one-slot `warehouse` pool with `transform`), plus a `cleanup` job that only
|
|
97
|
+
runs on a day `load` fails. Runs use `previous_business_day`, so Monday's
|
|
98
|
+
02:00 run processes Friday.
|
|
99
|
+
|
|
100
|
+
## Phase 2: Alerts and File Watchers
|
|
101
|
+
|
|
102
|
+
A smoke alarm is no use if nobody hears it. Phase 2 adds the ears:
|
|
103
|
+
|
|
104
|
+
- **Alerts**: the scheduler raises an alert when a run `failed`, is
|
|
105
|
+
`retrying`, `blocked`, `lost`, ran `too_short` or `too_long`, or
|
|
106
|
+
`never_started` by its `must_start_by`; when a file watcher gives up
|
|
107
|
+
(`watcher_timeout`); and when a config reload fails (`reload_failed`). A job sets `min_runtime`,
|
|
108
|
+
`max_runtime` and `must_start_by`, and its own `alerts:` to switch kinds
|
|
109
|
+
on or off.
|
|
110
|
+
- **Routing**: every alert has a topic, `alert.<kind>.<criticality>.<job>`.
|
|
111
|
+
`routes:` match topics with `*` (one word) and `#` (any number of words)
|
|
112
|
+
and pick notifiers. Deliveries are written to the store first, retried
|
|
113
|
+
with backoff, and replayed after a restart.
|
|
114
|
+
- **Notifiers**: `log`, `command`, `webhook`, `slack`, `telegram` and
|
|
115
|
+
`email`, with `${SECRET}` values kept out of the file.
|
|
116
|
+
- **File watchers**: a job with `type: file_watcher` waits for files
|
|
117
|
+
matching `watch` to arrive and sit still for `min_age`, then succeeds
|
|
118
|
+
and hands the list to its dependents as `{files}` (and
|
|
119
|
+
`PYSCHED_FILES`). It uses no pool or running slot while waiting, and
|
|
120
|
+
raises `watcher_timeout` after `give_up_after`.
|
|
121
|
+
|
|
122
|
+
Try it with `examples/alerts.yaml`:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
uv run pysched validate examples/alerts.yaml
|
|
126
|
+
uv run pysched serve examples/alerts.yaml # leave it running
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
In another terminal:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
uv run pysched trigger always-fails --run-date 2026-10-16
|
|
133
|
+
uv run pysched trigger slow-job --run-date 2026-10-16
|
|
134
|
+
touch examples/inbox/trades.csv
|
|
135
|
+
uv run pysched trigger inbox --run-date 2026-10-16
|
|
136
|
+
uv run pysched alerts
|
|
137
|
+
cat examples/logs/alerts.log
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`pysched alerts` lists what was raised and which deliveries were sent,
|
|
141
|
+
and `pysched replay <alert-id>` sends an alert's dead deliveries again. Concept pages:
|
|
142
|
+
[Alerts](docs/concepts/alerts.md), [Routing Alerts](docs/concepts/routing-alerts.md),
|
|
143
|
+
[Notifiers](docs/concepts/notifiers.md) and [File Watchers](docs/concepts/file-watchers.md).
|
|
144
|
+
|
|
145
|
+
## Phase 3: The Web UI
|
|
146
|
+
|
|
147
|
+
A noticeboard in the school hall beats asking the secretary. Phase 3 adds
|
|
148
|
+
one, served by the scheduler itself with no extra install and no build
|
|
149
|
+
step:
|
|
150
|
+
|
|
151
|
+
- **Login and roles**: a `users_file` (make a line with `pysched hash-password`)
|
|
152
|
+
gives each person a role: viewer, operator or admin. Bearer tokens and
|
|
153
|
+
browser sessions go through one access layer, with a CSRF token on
|
|
154
|
+
anything a cookie changes.
|
|
155
|
+
- **The board** (`/`): a row per run for any date, with state badges,
|
|
156
|
+
duration against the job's typical duration, filters, and critical
|
|
157
|
+
failures pinned to the top. Operators get rerun, hold, release, kill and
|
|
158
|
+
the other actions as buttons.
|
|
159
|
+
- **Run and job pages**: attempts, events, alerts and their deliveries, the
|
|
160
|
+
definition the run used, and a **live log tail**.
|
|
161
|
+
- **The dependency graph** (`/graph`): layered left to right, coloured by
|
|
162
|
+
state, with failure and cross-date edges drawn differently and a focus
|
|
163
|
+
mode that lights up everything upstream and downstream.
|
|
164
|
+
- **The timeline** (`/timeline`): hour, day and week views of when every job
|
|
165
|
+
really ran, with forecast "ghost" bars for what is still to come; and the
|
|
166
|
+
forecast table (`/forecast`).
|
|
167
|
+
- **Admin** (`/admin`): config versions with a diff against the one
|
|
168
|
+
before, and the dead-letter tray with a replay button.
|
|
169
|
+
- **Live updates**: pages follow the scheduler over server-sent events with
|
|
170
|
+
numbered ids, so a dropped connection catches up (or reloads) by itself.
|
|
171
|
+
|
|
172
|
+
Try it with the seeded demo: twelve jobs, three days of real runs, a flaky
|
|
173
|
+
job, a file watcher and a critical failure. It listens on loopback only.
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
uv run python examples/ui_demo.py # prints the address; log in as admin / demo
|
|
177
|
+
uv run python examples/ui_demo.py --seed-only
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Concept pages: [The Web UI](docs/concepts/web-ui.md),
|
|
181
|
+
[Live Updates](docs/concepts/live-updates.md),
|
|
182
|
+
[Graph Layout](docs/concepts/graph-layout.md) and
|
|
183
|
+
[Timelines](docs/concepts/timelines.md); the auth modes are in
|
|
184
|
+
[The HTTP API](docs/concepts/http-api.md).
|
|
185
|
+
|
|
186
|
+
## Phase 4: Remote Agents
|
|
187
|
+
|
|
188
|
+
A shop with drivers can deliver across town. Phase 4 lets a job run on
|
|
189
|
+
another machine:
|
|
190
|
+
|
|
191
|
+
- **Agents**: `pysched-agent` is a worker that takes sealed orders from a
|
|
192
|
+
pymq broker, runs them with the same minder the scheduler uses and
|
|
193
|
+
reports back. A job picks its place with `agent: name` or
|
|
194
|
+
`agent_tags: [gpu]`.
|
|
195
|
+
- **An `agents:` section**: the scheduler embeds a broker (`listen`) or
|
|
196
|
+
uses an existing one (`broker`), with a secrets file naming each agent.
|
|
197
|
+
- **Heartbeats**: an agent says "still here" every 10 seconds. Silence for
|
|
198
|
+
`agent_grace` marks it offline; an attempt unheard for `lost_after` is
|
|
199
|
+
failed as `lost`, and retries apply.
|
|
200
|
+
- **Remote logs**: fetched from the agent on demand (503 if it is offline).
|
|
201
|
+
- **Signed messages**: every message carries an HMAC seal, a date and a
|
|
202
|
+
one-time nonce. The broker itself has no authentication or encryption,
|
|
203
|
+
so use loopback, a trusted network or a tunnel.
|
|
204
|
+
- `GET /api/agents`, the `/agents` page and `pysched agents` show who is online.
|
|
205
|
+
|
|
206
|
+
Try it: a scheduler and two agents in one process, a pinned job and a
|
|
207
|
+
tagged job, and a printout of which agent ran each:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
uv run python examples/agents_demo.py
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Concept pages: [Remote Agents](docs/concepts/remote-agents.md),
|
|
214
|
+
[Heartbeats](docs/concepts/heartbeats.md) and
|
|
215
|
+
[Signed Messages](docs/concepts/signed-messages.md).
|
|
216
|
+
|
|
217
|
+
## Config Reference
|
|
218
|
+
|
|
219
|
+
The config format (scheduler settings, calendars, pools, defaults and
|
|
220
|
+
every job key) is described in the docs:
|
|
221
|
+
|
|
222
|
+
- [Config Files](docs/concepts/config.md) and [YAML](docs/concepts/yaml.md)
|
|
223
|
+
- [Templates and Values](docs/concepts/templates.md) for `{run_date}` and `${SECRET}`
|
|
224
|
+
- [Cron Expressions](docs/concepts/cron.md) and [Calendars and Run Dates](docs/concepts/calendars-and-run-dates.md)
|
|
225
|
+
- [Validation](docs/concepts/validation.md) for every check `pysched validate` makes
|
|
226
|
+
|
|
227
|
+
The full design is in `docs/superpowers/specs/2026-10-17-pyscheduler-design.md`.
|
|
228
|
+
|
|
229
|
+
## Concepts
|
|
230
|
+
|
|
231
|
+
Every concept has a kid-friendly page with an everyday analogy and a
|
|
232
|
+
runnable snippet. Start at [docs/index.md](docs/index.md) for the learning
|
|
233
|
+
path:
|
|
234
|
+
|
|
235
|
+
scheduler, YAML, config files, templates, cron, calendars and run dates,
|
|
236
|
+
time zones and DST, dependencies, runs and states, retries and backoff,
|
|
237
|
+
pools and limits, the minder, clocks and launchers, group commit,
|
|
238
|
+
concurrency, recovery and catch-up, validation, operator actions,
|
|
239
|
+
forecast, notifiers, routing alerts, alerts, file watchers, the HTTP API,
|
|
240
|
+
the service and CLI, the web UI, live updates, graph layout, timelines,
|
|
241
|
+
remote agents, heartbeats and signed messages.
|
|
242
|
+
|
|
243
|
+
Build the docs site with:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
uv run --with mkdocs-material mkdocs build --strict
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Roadmap
|
|
250
|
+
|
|
251
|
+
| Release | Contents |
|
|
252
|
+
|---------|----------|
|
|
253
|
+
| v0.1 | **Core engine**: YAML reader, config and validation, schedules, calendars, time zones, run dates, forecast, journalled store, the minder, local runs, dependencies, retries, pools, holds, catch-up, backfill, rerun, JSON HTTP API, `pysched` CLI |
|
|
254
|
+
| v0.2 (done) | **Alerts and file watchers**: alert rules (failed, never started, too long, too short, lost), routing through a pymq broker, notifiers (log, command, webhook, Slack, Telegram, email), file-watcher jobs |
|
|
255
|
+
| v0.3 (done) | **Web UI**: login and roles, job board, run detail with live log tail, dependency graph, timeline with forecast, operator actions, live updates over SSE |
|
|
256
|
+
| v0.4 (done) | **Remote agents**: `pysched-agent` workers over a pymq broker, heartbeats, lost-agent handling, remote log fetch, signed messages |
|
|
257
|
+
|
|
258
|
+
## Development
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
uv run pytest
|
|
262
|
+
uv run ruff check . && uv run ruff format --check .
|
|
263
|
+
uv run pyright
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
267
|
+
|
|
268
|
+
<!-- series:start -->
|
|
269
|
+
## Related Projects
|
|
270
|
+
|
|
271
|
+
This project is one of a series that builds real systems "from scratch in Python" to teach how they work. See the [series home](https://robcox2910.github.io/) for the full story.
|
|
272
|
+
|
|
273
|
+
| Project | What it teaches | Repository | Docs |
|
|
274
|
+
| --- | --- | --- | --- |
|
|
275
|
+
| PyOS | Operating systems | [py-os](https://github.com/robcox2910/py-os) | [Docs](https://robcox2910.github.io/py-os/) |
|
|
276
|
+
| Pebble | Compilers and programming languages | [pebble-lang](https://github.com/robcox2910/pebble-lang) | [Docs](https://robcox2910.github.io/pebble-lang/) |
|
|
277
|
+
| PyDB | Relational databases | [pydb](https://github.com/robcox2910/pydb) | [Docs](https://robcox2910.github.io/pydb/) |
|
|
278
|
+
| PyKV | Key-value stores | [pykv](https://github.com/robcox2910/pykv) | [Docs](https://robcox2910.github.io/pykv/) |
|
|
279
|
+
| PyDocDB | Document databases | [pydoc-db](https://github.com/robcox2910/pydoc-db) | [Docs](https://robcox2910.github.io/pydoc-db/) |
|
|
280
|
+
| PyGraphDB | Graph databases | [pygraphdb](https://github.com/robcox2910/pygraphdb) | [Docs](https://robcox2910.github.io/pygraphdb/) |
|
|
281
|
+
| PyTSDB | Time-series databases | [pytsdb](https://github.com/robcox2910/pytsdb) | [Docs](https://robcox2910.github.io/pytsdb/) |
|
|
282
|
+
| PyVecDB | Vector databases | [pyvecdb](https://github.com/robcox2910/pyvecdb) | [Docs](https://robcox2910.github.io/pyvecdb/) |
|
|
283
|
+
| PyColDB | Column-family databases | [pycoldb](https://github.com/robcox2910/pycoldb) | [Docs](https://robcox2910.github.io/pycoldb/) |
|
|
284
|
+
| PyCrypt | Cryptography | [pycrypt](https://github.com/robcox2910/pycrypt) | [Docs](https://robcox2910.github.io/pycrypt/) |
|
|
285
|
+
| PyNet | Computer networking | [pynet](https://github.com/robcox2910/pynet) | [Docs](https://robcox2910.github.io/pynet/) |
|
|
286
|
+
| PyWeb | HTTP web servers | [pyweb](https://github.com/robcox2910/pyweb) | [Docs](https://robcox2910.github.io/pyweb/) |
|
|
287
|
+
| PyGit | Version control | [pygit](https://github.com/robcox2910/pygit) | [Docs](https://robcox2910.github.io/pygit/) |
|
|
288
|
+
| PySearch | Search engines | [pysearch](https://github.com/robcox2910/pysearch) | [Docs](https://robcox2910.github.io/pysearch/) |
|
|
289
|
+
| PyMQ | Message queues | [pymq](https://github.com/robcox2910/pymq) | [Docs](https://robcox2910.github.io/pymq/) |
|
|
290
|
+
| PyLLM | Language models (the brain) | [pyllm](https://github.com/robcox2910/pyllm) | [Docs](https://robcox2910.github.io/pyllm/) |
|
|
291
|
+
| **PyScheduler** | **Job scheduling** | [pyscheduler](https://github.com/robcox2910/pyscheduler) | [Docs](https://robcox2910.github.io/pyscheduler/) |
|
|
292
|
+
| PyStack | Full-stack integration | [pystack](https://github.com/robcox2910/pystack) | [Docs](https://robcox2910.github.io/pystack/) |
|
|
293
|
+
<!-- series:end -->
|
|
294
|
+
|
|
295
|
+
<!-- docs:start -->
|
|
296
|
+
## Documentation
|
|
297
|
+
|
|
298
|
+
Full docs (with kid-friendly explanations of every idea): https://robcox2910.github.io/pyscheduler/
|
|
299
|
+
<!-- docs:end -->
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
pyscheduler/__init__.py,sha256=SrPmauyL1SOIxk4lxYLqHiURQ5Ht9NdHbhbDiaDaymE,283
|
|
2
|
+
pyscheduler/__main__.py,sha256=gj0ueefInx-fd-xOM6TUSE-eBCZUD8H5xp6HpC0xu-8,164
|
|
3
|
+
pyscheduler/_version.py,sha256=APp2gXXpoz-tyKGj5fWwVTf7yK8O9LHP-MP0aQ_uNxs,520
|
|
4
|
+
pyscheduler/calendars.py,sha256=29glVs7eHlJfje_cpKH3bY5Bz9YS5Vh5GFeui3FoalE,3625
|
|
5
|
+
pyscheduler/cli.py,sha256=D-99UQ2u2pukfL5PS7l6K-rVlcWFe2cjSiyRZyunmUc,10137
|
|
6
|
+
pyscheduler/cli_alerts.py,sha256=5jgDDArIKeGarDLjJ3YkcDgTVOtn7UXZEQ_vhcrdKV8,2970
|
|
7
|
+
pyscheduler/cli_commands.py,sha256=65DEihp30ryIBQURIKAqobpoBBULnCB2yriV6RlP7SE,10603
|
|
8
|
+
pyscheduler/cli_format.py,sha256=WZ7UVdeBSIO3Mis3a7BDViyRlQ5rW0qhzkvcw2ChSTI,4104
|
|
9
|
+
pyscheduler/client.py,sha256=mkgmOPrXoctEbDjZJsK5W_g-fNGzn5qHkBWme2gkrhQ,12464
|
|
10
|
+
pyscheduler/demo.py,sha256=FRXmVFskCyXR7Di6Av-PJdtH3wKSAt85D-otOlSp8wA,11919
|
|
11
|
+
pyscheduler/demo_agents.py,sha256=e3uX7gEg5wck_T16Cv0xc4pXTm2NHwF5jE_NRyjhhro,9968
|
|
12
|
+
pyscheduler/demo_config.py,sha256=rGCYzgv7YhvVt-Z6sI5GF5Aeh2iF95EvwpUlPU8VOfc,4548
|
|
13
|
+
pyscheduler/fake_hub.py,sha256=GYuEoacz8EdyzzV2Bt1pu5PU0NM2NbzgTzLwnedw6FI,14807
|
|
14
|
+
pyscheduler/minder.py,sha256=CGnKjVAah3SrFOC3y9hLEvAMjr4-dRQV7F2qDmbB7t4,12510
|
|
15
|
+
pyscheduler/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
pyscheduler/service.py,sha256=0ISzqu_vNkgeFWkhjvh4l8T9cCCckQ43fSAj9nEilQs,15841
|
|
17
|
+
pyscheduler/service_agents.py,sha256=PTNbI54gtkcQLFuTxf1GVqi-H0duV8c8tgLaQtx-Pq8,3752
|
|
18
|
+
pyscheduler/service_parts.py,sha256=WE3T8CiHmgCB8iSbDoCCJMFT_D-l4Pv4glWjig3M0js,5273
|
|
19
|
+
pyscheduler/templates.py,sha256=xU7yRHzBqrS8kmY_QyQ7q3XgStbXHpYcr8cYqcztveY,3727
|
|
20
|
+
pyscheduler/testing.py,sha256=y3QuH0qLqIOjp51-Uo98ttUIgGYAzauZ6sz98awpRDk,5333
|
|
21
|
+
pyscheduler/values.py,sha256=gQmvEl7c3aTSSr_QO7HI7bSRkbxnuu0QLjBa1VsU6q0,3299
|
|
22
|
+
pyscheduler/agents/__init__.py,sha256=NUx4R1S9yOfTrDRYyg-lvzWGZJummw7xvPhu8xzG81Q,474
|
|
23
|
+
pyscheduler/agents/book.py,sha256=qnzSSoPmgnjK2jeMFHqzJjPPw29UsUPO62K_vlo_MvI,7527
|
|
24
|
+
pyscheduler/agents/cli.py,sha256=b_Qh0Mximsrdka0nF-8cNUA7swvw7M6w6wrXgTLPkdM,7199
|
|
25
|
+
pyscheduler/agents/hub.py,sha256=EgYYyeE-Y7gX0USJl8tE-t86F8shiTRTRmb-maCEtoY,17584
|
|
26
|
+
pyscheduler/agents/hub_link.py,sha256=6IM_cdz12KPgT1QU0OmTR8fq9QqxNG1xIJNjvPpJZVQ,11012
|
|
27
|
+
pyscheduler/agents/journal.py,sha256=VWkbWTrBwSRr1aUqwlS7oHeZGR9HQ0gLGK6Nzz7H2ec,8154
|
|
28
|
+
pyscheduler/agents/log_messages.py,sha256=LGj5XaCBf-76TuWiI2RMHNQoMZFkk5x-qWxH359Y7cU,5509
|
|
29
|
+
pyscheduler/agents/logsource.py,sha256=SOKeGF2o8KjoZfvL6-2D6pCqKS3TTv5ga04L-KwXqGw,10545
|
|
30
|
+
pyscheduler/agents/messages.py,sha256=pYk-KVfOSOFJVbHROxSAvxb4pBRG9zVhT66wyHc8k2c,12926
|
|
31
|
+
pyscheduler/agents/orphans.py,sha256=rzkc9Cm1z-1mZGf83cZCjilRm-Ws-ynr8j1iHN5u-4k,3810
|
|
32
|
+
pyscheduler/agents/placement.py,sha256=zkq3eLHsFPTlXWec0Fen2PSELBl8yW8mCI1OemlcBcQ,3519
|
|
33
|
+
pyscheduler/agents/remote_handle.py,sha256=YFA6e726ZJVwe0g9YGScmBP8yliZRK1LYXqDh0xJljM,3793
|
|
34
|
+
pyscheduler/agents/signing.py,sha256=SkrG0KTTQMaLHQ8mxdohvbpSwiag2x63rpLOV9-d_bI,6771
|
|
35
|
+
pyscheduler/agents/worker.py,sha256=dao6vT5RalizUKhNSlTiW5RLvpFTuF1esuhafZSiPvk,14471
|
|
36
|
+
pyscheduler/agents/worker_files.py,sha256=NddunTr6w6G5-y8G6x_ado1A5vh6eimQU91rVByzh-0,4106
|
|
37
|
+
pyscheduler/agents/worker_reports.py,sha256=Ss6fGOYsVO09oQ5T53nDvItKX-30WPKRCZT996BrOCA,5696
|
|
38
|
+
pyscheduler/alerts/__init__.py,sha256=m-k1j0v2vukoQe69T0ZuSiT5zvIAYMUTTUo4S_qvdQE,194
|
|
39
|
+
pyscheduler/alerts/deadlines.py,sha256=vNtv94Dt_JL67J8RrZAR60_beGVXxXgmK6SZhIIF5_Q,5220
|
|
40
|
+
pyscheduler/alerts/delivery.py,sha256=gWyyEcymujWk0MRqq4NH6PIs2CLyB_TaOdbafzQ2DBE,11164
|
|
41
|
+
pyscheduler/alerts/dispatch.py,sha256=CvdNsckWGc-Z-naZGqNzngHlnrMx_vwhC8_iRYWvf3k,11963
|
|
42
|
+
pyscheduler/alerts/model.py,sha256=UVYFzSIzbxKRVWjYQgKQMDZjw6vCXd2WuhdkvkfRa78,1609
|
|
43
|
+
pyscheduler/alerts/monitor.py,sha256=8RF3UdWm9xZLi-O-T_b9JyuVB6MRdZTemCKk5evjhu0,14523
|
|
44
|
+
pyscheduler/alerts/raising.py,sha256=svmVIk0wiJVaTGjFwOaxTnCpKwkQbk1Yya1TCjTGYrc,5820
|
|
45
|
+
pyscheduler/alerts/routing.py,sha256=LkSG0YmftqdiZa0lkzf5mYgq5vdhTVi0BYrKtLrnao0,1995
|
|
46
|
+
pyscheduler/api/__init__.py,sha256=O2Ry-2nMnuDlWdUo7vXaG_FhxsrGBco6NHv11afyL0I,629
|
|
47
|
+
pyscheduler/api/access.py,sha256=eD-MYJox3D9RTkfZh51cZhnKtFMWD4QNsRxXxnLKgds,9501
|
|
48
|
+
pyscheduler/api/admin.py,sha256=OCCjBBXo551tBmhBMEDp-6luw75sAWYswucXuShJwBU,10206
|
|
49
|
+
pyscheduler/api/agents.py,sha256=GUIoQYvLvQ8h95FZnNRBUJpJIPYQu5qAB-HWnjJiBbM,1958
|
|
50
|
+
pyscheduler/api/alerts.py,sha256=nQ_G8tDu1FwQ61ms9RcrAg6Wk_EmWqgKn45j1zkdedQ,6183
|
|
51
|
+
pyscheduler/api/app.py,sha256=ZdrOFnc5p4OIwiV9ZuqxJ-Vs1P6tbwQHdf7xL1Rxlko,5037
|
|
52
|
+
pyscheduler/api/auth.py,sha256=tSu3xe5EmBJMkSpNV1pONl3pv69ksXroAyRQb9JpFOc,9359
|
|
53
|
+
pyscheduler/api/jobs.py,sha256=BKeb4CJLO8M065hpkV2wJ32nj4CuFzrgHcjeQaQ3ivs,7687
|
|
54
|
+
pyscheduler/api/runs.py,sha256=EYWkgHpvOLiyAO89pWED2jOjaW7tbezhG31cvOKpXHU,9840
|
|
55
|
+
pyscheduler/api/serialize.py,sha256=zSKHEQwPTyGXo5oNn2zxtBom5gNxhG29Cu0uLhHRFOM,13427
|
|
56
|
+
pyscheduler/api/session_key.py,sha256=eFgq1JDGGBc4ktzVt9YKh-s6o49jaQS7kr8wlixYWpI,2777
|
|
57
|
+
pyscheduler/api/support.py,sha256=QiKteVk4jL6zUUya42s8X91JfW1vfR_LEOFCIZVjSWg,6857
|
|
58
|
+
pyscheduler/api/users.py,sha256=gEbLZXxW9v9nA_zljy-VHUC485VW6tDz_osbX0NB9sM,6180
|
|
59
|
+
pyscheduler/config/__init__.py,sha256=wJDBwIC5x4x9zuwrVt-3n-hQGaIf6j8UpEqnvpM8b6w,863
|
|
60
|
+
pyscheduler/config/agent_fields.py,sha256=q0_-eN1CXxIfsQi-lOOhg1OFakjKLPqpSk1K9YAhfCY,3592
|
|
61
|
+
pyscheduler/config/agent_secrets.py,sha256=W5gDtzBb8VB36X1e0ZgbqQN9yVwi1KQ91j0EaeHI6yM,4149
|
|
62
|
+
pyscheduler/config/agents_model.py,sha256=IggTx8XQc8fxKvrgwjAnGy6hHfQnjuwg6G5RK1BVsW4,1113
|
|
63
|
+
pyscheduler/config/alert_fields.py,sha256=PPcELThiNXLBCDpCsmdkDG4aI9mZ7Zq8-DmIZQFLePE,9091
|
|
64
|
+
pyscheduler/config/calendar_fields.py,sha256=hRmM8LnD0JMYG5a_mwsTUVkvBff5up44qnLwXrKsTNs,2996
|
|
65
|
+
pyscheduler/config/calendar_inheritance.py,sha256=J6Cx6280I7-xD3VGEe-2yTYFRbeaY09defkHX7Vwkx0,3086
|
|
66
|
+
pyscheduler/config/fields.py,sha256=_flCspmrO8qGBEyfZNg-3DCECmwbeblDT5nb4a62dWo,11507
|
|
67
|
+
pyscheduler/config/job_fields.py,sha256=cuad5adoKh-u3kbwfj7a4QCpWVHWiqz1B9figjp1CUI,13586
|
|
68
|
+
pyscheduler/config/loader.py,sha256=q14uYbJYwV8A-Uz85Cdr5Y6szeF_4Tft9sxqQc9ROtY,14112
|
|
69
|
+
pyscheduler/config/model.py,sha256=DVRvSsnOMa17oNJ7AOAXVS-z50tqbbgfnJeu05VZikA,11634
|
|
70
|
+
pyscheduler/config/redaction.py,sha256=O8SjvClFqaac0ml2sxNx7sdCUEcF0qdgVEK1x3iizaI,2330
|
|
71
|
+
pyscheduler/config/run_dates.py,sha256=uiKoPy9mbdnThcTpyGyq6cf2y5t1uLeIWZVkos04hj0,7835
|
|
72
|
+
pyscheduler/config/schedule_fields.py,sha256=bmaQxO4l3UIBkT90q4FqNKgjh5Z1NxBcRRpf82tLHI0,6300
|
|
73
|
+
pyscheduler/config/settings_fields.py,sha256=2zE3fSDKK_yBetfx1S9no6XWbshQ2mTad0K4vJx5f38,3577
|
|
74
|
+
pyscheduler/config/source_ref.py,sha256=Ryp5DwUZpnH6-JMTWh3q9q0NRNuJV1WqMMHpfHTrFVI,280
|
|
75
|
+
pyscheduler/config/validate.py,sha256=ckfe8DrzED0UPuuSCPJqSpeNpxV5so1GV4pa3jIGsNM,16116
|
|
76
|
+
pyscheduler/config/validate_agents.py,sha256=vNW79h306GaDfs0aLvGQNW1BAQt6p2oNP3LzEQMrpsg,3067
|
|
77
|
+
pyscheduler/config/validate_alerts.py,sha256=2QzpYSnts65tcdA_mHAr_8mYNrsbp6PPmzCW58mNtMY,2019
|
|
78
|
+
pyscheduler/config/validate_templates.py,sha256=q_6ctsI16r1ltSt0zBe3zqoi9zM3NKpOUx-2S0ZI4go,2630
|
|
79
|
+
pyscheduler/config/watch_fields.py,sha256=nXGFOVWaFIG65RzYMC4if8ATxbmAoK9iF9e1PSnnmac,3280
|
|
80
|
+
pyscheduler/engine/__init__.py,sha256=DDp46q5KHPgz4qDpTzUF6APyhcinn4yT50Ev77mGzzw,270
|
|
81
|
+
pyscheduler/engine/action_support.py,sha256=yXQI5bDTKDXrTf_BBx_0sAYS7hIvk8o2GYI3UjRhfz0,12234
|
|
82
|
+
pyscheduler/engine/actions.py,sha256=gTxG2_mVR7UN9aoTiWRc0r3KEOUqtRqqa1Iotvy_v2c,14340
|
|
83
|
+
pyscheduler/engine/admission.py,sha256=8bMr5q5UR7Ed9PtSUEuyteHTZ31ja3GX6dbCD1ba_YM,8993
|
|
84
|
+
pyscheduler/engine/adopted.py,sha256=59qAbff48mZmJHcLiSSv6ERCKSQekBiXQdfIrHQuhj4,11025
|
|
85
|
+
pyscheduler/engine/attempts.py,sha256=yIPCsvovKh5jyOwLjv99MIwyFJih2grHL-YHH90myzw,15078
|
|
86
|
+
pyscheduler/engine/base.py,sha256=RCYiuT3eMq3sLrL_h2Z1NWWtyzD7Dmh6TaWD84eZdJw,16000
|
|
87
|
+
pyscheduler/engine/clock.py,sha256=uCjRV69M4KEhfRxt7SguU53NXGv6mY0Ij3_SUmYFbUc,8734
|
|
88
|
+
pyscheduler/engine/core.py,sha256=owAoJoML788lOQoZoorQ6G8KAuoQXQ7vxFCshMvIzAs,16052
|
|
89
|
+
pyscheduler/engine/creation.py,sha256=MZfBz44mca7eHL75IQVZUsv9og8Aohr-kWUFrZmtdck,10669
|
|
90
|
+
pyscheduler/engine/deps.py,sha256=cEbxkHMxuDBuhd6yxdbXIN7CdxHTgsPNVjMDOc3wbbo,3945
|
|
91
|
+
pyscheduler/engine/hooks.py,sha256=EQxkUCtBSEtRNpaYFTNXLpTYnc-jK3VERRb4IdGenWk,5457
|
|
92
|
+
pyscheduler/engine/launcher.py,sha256=THLRXZDhO3CcV6rIpa1wtMw4BefLw1UbQO0qGJM7WWo,13670
|
|
93
|
+
pyscheduler/engine/locks.py,sha256=YKaDur5VNjaLyLp6-IN9IAytekPogsJBiheCn-sUmYs,3678
|
|
94
|
+
pyscheduler/engine/model.py,sha256=SCA3pySYMWb45e1vaMZJrom5a9lsbiqKKTUG4pag-Go,5741
|
|
95
|
+
pyscheduler/engine/outcomes.py,sha256=pNQCPgs5klgQKFkIMmP_Q6ym701-XxDbVY_qoqMCNuM,3016
|
|
96
|
+
pyscheduler/engine/recovery.py,sha256=GFhrhgc51ndOp7T6rVUdLPHGJ3dElikNYuOigWR0qOo,17686
|
|
97
|
+
pyscheduler/engine/reload.py,sha256=Oy2mWI0ucmLyf-tSYV0duuXBhA-1n0ExnLa977kGP1c,10784
|
|
98
|
+
pyscheduler/engine/remote.py,sha256=Xs6qY0hHLwycpxyYr-sq2MNVHCbyU6cSBPhprWAq3Fo,16202
|
|
99
|
+
pyscheduler/engine/retention.py,sha256=RoYdd7J95b3ZyfnDVfxbSPtdhjZp_-ssSJjCt1FztnE,6726
|
|
100
|
+
pyscheduler/engine/runbook.py,sha256=PifUPrTnl0Xti_8reKe3rof9r7IVCio8mB78Lq2rVxs,12008
|
|
101
|
+
pyscheduler/engine/status_note.py,sha256=412A3O36tegeWaTUn-Yn6a2F_PvTMQEuWWcApi451IU,4341
|
|
102
|
+
pyscheduler/engine/watch_runs.py,sha256=NO8M8M61Q-HV1z6MJzIyhm6mzntrlfSj7UUiyWs3km0,6277
|
|
103
|
+
pyscheduler/engine/watcher.py,sha256=H0_VAB97qNJu89cxuSLr5WkMeEEQ_V9QoQDMEgnzI04,9129
|
|
104
|
+
pyscheduler/notifiers/__init__.py,sha256=TgQ6YqG-cYtZz2yaIQTHsCxonS7g-dA7AVmTQRkQxCI,318
|
|
105
|
+
pyscheduler/notifiers/base.py,sha256=e_mUoLsIXzwFutsb209k9J63BQcZvEcHz5HOuxvFbgU,4532
|
|
106
|
+
pyscheduler/notifiers/email.py,sha256=YtWcUXonLtG6Q9sgVjj1Sx6vIzMsn_d8nJvolymx_bI,5329
|
|
107
|
+
pyscheduler/notifiers/local.py,sha256=TGKnnw1MLqKBgmhPw1CzHlqIL9UCWgxCHVZ8ju5aiN4,5825
|
|
108
|
+
pyscheduler/notifiers/threads.py,sha256=Ot8arquX6cAbeQcfsxmsdPb1OaYDLYtM1C_8GhouJX8,2807
|
|
109
|
+
pyscheduler/notifiers/web.py,sha256=aXQQJG83xgTl7ow7_2IJlgAl7NMECwBQR-CzRTyCo7c,7915
|
|
110
|
+
pyscheduler/schedule/__init__.py,sha256=tVG-fvRlWluBW8lYkbkL2j4djBnDG_CnzciEkolTzWQ,40
|
|
111
|
+
pyscheduler/schedule/cron.py,sha256=qtVdDpur-EHe0HtjfBoQc-62fLUCLLhwjUQk7xldHyc,8201
|
|
112
|
+
pyscheduler/schedule/firings.py,sha256=V5PAXAFqFhy0xj5B1MsdBXcg-RQ6vJ7O-jnbxhRqB4M,9268
|
|
113
|
+
pyscheduler/schedule/forecast.py,sha256=h9B1TYB5TdegIe8azxe62X6vS4lwBlL6QbhBNTW6uyU,6745
|
|
114
|
+
pyscheduler/schedule/local.py,sha256=sR_ruJ4aJ6KgZHBU0E3z4J1Sja6yGqxWwGuv3byuS0I,1861
|
|
115
|
+
pyscheduler/schedule/specs.py,sha256=xVxJLTQqE3hXpRYju_CMQHu87ZmxBG0gaL2APWP0vn8,7622
|
|
116
|
+
pyscheduler/store/__init__.py,sha256=wzd_WLlfHzr6SMIs-RLYtaywAOxvF5UIWfftqxoxSP0,451
|
|
117
|
+
pyscheduler/store/alert_store.py,sha256=Ppn6kHg-h8HTviynUzoy95ylx2RJVnswalUVAl2BbIM,11044
|
|
118
|
+
pyscheduler/store/attempt_reads.py,sha256=vEcy-ca8zkiWQs_KmQu3A_xOvRI1m-wFxg73-w7Ilaw,1344
|
|
119
|
+
pyscheduler/store/config_reads.py,sha256=aCf6Otq4M_BYKRP55Oq4NCTdf0gSrQbw5Uj5q8m7t54,1742
|
|
120
|
+
pyscheduler/store/duration_reads.py,sha256=GFxKlv_cjy-bKi7hJBbLND_SLA78NglHhJAUOw-G-HE,3290
|
|
121
|
+
pyscheduler/store/schema.py,sha256=50paIXFYfm6kZx9ipy8oUiO8Q9juw0sGZv3f-H0a0EA,14720
|
|
122
|
+
pyscheduler/store/staging.py,sha256=F1K0EbUyD1XjxRJTImUPNZRFL4lGRuwrlGQBRM3DMCk,1416
|
|
123
|
+
pyscheduler/store/store.py,sha256=rNUSpNPoCZzmlVKCNdf-x0xQS2jXhQiC9aVuujDC6Mc,15817
|
|
124
|
+
pyscheduler/store/writer.py,sha256=6zDU-P8IjZzngVT50xFhsjsNj5nrR7SjIAjyPd1KTAA,6485
|
|
125
|
+
pyscheduler/ui/__init__.py,sha256=BCdz6TBzmq4pz5AmyW4sSwvAY8eW1Tc4EDw-jvcN5Mw,2611
|
|
126
|
+
pyscheduler/ui/admin.py,sha256=gGy01jaXEXnN5XL7CI8C-6qN27Ll3dvMYxnk4ZijMXA,9439
|
|
127
|
+
pyscheduler/ui/agents_page.py,sha256=smUCjCdwUmu8aDIRfLy0D6L6Ij-EpftnXw47S_vIOeA,4215
|
|
128
|
+
pyscheduler/ui/board.py,sha256=9uuVRC1wjPs8QAYUwZOweuwTMwXJwz8XLvhr8BexgT4,6996
|
|
129
|
+
pyscheduler/ui/board_view.py,sha256=McdrlFuPBPyVO7xeM9qdikL8ddHKj3cFgLaBnBaRDnk,13104
|
|
130
|
+
pyscheduler/ui/config_diff.py,sha256=gMqsD0hrb-3NmxlseWNuojaiMpQ8NA-kUNdI7SpXJog,3648
|
|
131
|
+
pyscheduler/ui/dates.py,sha256=jCH38rSApqN7SnlExImywgp3muL3woIj7wNyJmmdzp8,1439
|
|
132
|
+
pyscheduler/ui/detail.py,sha256=XctmL4jjelk1F8SRIjWOVcz4WAbjIajXZPL76kwooew,6719
|
|
133
|
+
pyscheduler/ui/detail_view.py,sha256=9uuRFrgtIZ08UtsvF7l21CxyL5CNGeyXGroXY5pvKQM,13996
|
|
134
|
+
pyscheduler/ui/forecast_page.py,sha256=eYageQaTin7XFeHJk-a61eDCw3CzBiPqraF5vOp5gW4,4070
|
|
135
|
+
pyscheduler/ui/graph.py,sha256=IU__xCICGSXPZzORoL9WPvTh_t8CyENv3F7aSsXzW3I,12221
|
|
136
|
+
pyscheduler/ui/graph_layout.py,sha256=ljXO9xS1-4FdfR723kOkgjNoGadbQx5ly7nCjI5pZjo,7810
|
|
137
|
+
pyscheduler/ui/html.py,sha256=k2KPwstMVIoAYRLsEuz61OXCkea1sy-AIV1J8pzzx50,5595
|
|
138
|
+
pyscheduler/ui/layout.py,sha256=_wNtOkvugLYwm1NpGQPFFWr2DzZB6SghA7WuAoriwFk,5893
|
|
139
|
+
pyscheduler/ui/live.py,sha256=kwVlx0m1nYfqoRXG16ZeH43WYo9n2M-iTke4qFqOo1c,11570
|
|
140
|
+
pyscheduler/ui/login.py,sha256=HJ9yiWSuqsxUS2bEADZ9Lwj0Ccb5ZjV0RGIm6HVJqPs,3936
|
|
141
|
+
pyscheduler/ui/logtail.py,sha256=OImO9Vx3YpvwZYibPXURQgP65O_gvbo4KkbEvQmDJ30,8511
|
|
142
|
+
pyscheduler/ui/sparkline.py,sha256=qfYbACUPRdhvAIoSKqltinrewIm-1lyukgYrJ4KKFXQ,2136
|
|
143
|
+
pyscheduler/ui/timeline.py,sha256=6uQvL1MuzoW7JCOKlQyIf8mVhEgU5YMgQ2zjkXoFX_c,13237
|
|
144
|
+
pyscheduler/ui/timeline_window.py,sha256=PpZJYKSltibtEKVMy7kAKiSjmxdHQwhFK4Dj18vUpHQ,4317
|
|
145
|
+
pyscheduler/ui/static/actions.js,sha256=jcl3w-J4qHtrpuEIvbLid159_UM1Yvvdvy35byPO28A,3702
|
|
146
|
+
pyscheduler/ui/static/admin.js,sha256=Fc0urF0yZqYC27LKs6Dwz48QysMafHm0s3Xpow-26dk,2855
|
|
147
|
+
pyscheduler/ui/static/agents.js,sha256=MiGc-69K2hkP8iSCp_4JKdnxxtWOCIAKwHUm1AeWcOU,1758
|
|
148
|
+
pyscheduler/ui/static/app.css,sha256=G-SzeDpEw4l50EFVtJ6QvkFr2dIyhfMnk6o3rePBPiU,10940
|
|
149
|
+
pyscheduler/ui/static/app.js,sha256=bLrMCFUrLBhcYs4JowD7xWWNL5lSYmlz6EegIv3GPSE,786
|
|
150
|
+
pyscheduler/ui/static/board.js,sha256=NLQWddHKU4VsbeGWir_8QNmIt_EclzlW5PzkScQ2qbM,5849
|
|
151
|
+
pyscheduler/ui/static/common.js,sha256=8ocBtrJgSY19YA9BL0uznZB7OxLiap1PHWskC_xmWGA,6846
|
|
152
|
+
pyscheduler/ui/static/log.js,sha256=DWWAEK3P7Omygs35dXWztfZ47kd3339DWnRrOq45zlE,4743
|
|
153
|
+
pyscheduler/ui/templates/login.html,sha256=IZrjBk7TbLPG8343beBG3n-aPVtHDgf3N00SFZhJVZk,404
|
|
154
|
+
pyscheduler/ui/templates/page.html,sha256=MnXqBM0dXUzqNJOpWYPxXlAyiObpookYFcdwpeVzWfI,586
|
|
155
|
+
pyscheduler/yamlish/__init__.py,sha256=kvWHpVgmqad-F5x_HlIMoVjMO0M_GwCufu9X99cDctM,327
|
|
156
|
+
pyscheduler/yamlish/_scalars.py,sha256=3qmObX8spM5TBGdD1HjPhArBFs3pjkgB29ZAuiv-bmM,9653
|
|
157
|
+
pyscheduler/yamlish/nodes.py,sha256=Bjh8h5qN_iwlkeEGlfaxA9ouEbhb0uc4-wT43SXXD3w,1131
|
|
158
|
+
pyscheduler/yamlish/parser.py,sha256=-MatBKrT6HQ0l7rirm9qLkGhrh8MnavdHsUiZKCAckU,12441
|
|
159
|
+
fromscratch_pyscheduler-0.5.0.dist-info/METADATA,sha256=UIo4EGIXrEHoBnPnioqS45czSrj6KOocbvQOlGRZ59k,14828
|
|
160
|
+
fromscratch_pyscheduler-0.5.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
161
|
+
fromscratch_pyscheduler-0.5.0.dist-info/entry_points.txt,sha256=GwZ7-PMdOu4Nw1EeFWB2uJ6nr4NIOW1WsWPtkSdBCpg,93
|
|
162
|
+
fromscratch_pyscheduler-0.5.0.dist-info/licenses/LICENSE,sha256=NtHM2ak--oE71VCcY50kcCoC1cKS0LRUsxq_xA89RNc,1064
|
|
163
|
+
fromscratch_pyscheduler-0.5.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rob Cox
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
pyscheduler/__init__.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"""PyScheduler -- an educational job scheduler built from scratch.
|
|
2
|
+
|
|
3
|
+
Think of a school timetable: every lesson has a time, some lessons can
|
|
4
|
+
only start after others finish, and the bell rings even when nobody is
|
|
5
|
+
watching the clock. PyScheduler is that timetable for computer jobs.
|
|
6
|
+
"""
|
pyscheduler/__main__.py
ADDED
pyscheduler/_version.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.5.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 5, 0)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Remote agents: signed messages between the scheduler and its workers."""
|
|
2
|
+
|
|
3
|
+
from pyscheduler.agents.messages import HEARTBEAT_EVERY, REPORTS_QUEUE, work_queue
|
|
4
|
+
from pyscheduler.agents.signing import (
|
|
5
|
+
MAX_SKEW,
|
|
6
|
+
NONCE_TTL,
|
|
7
|
+
Message,
|
|
8
|
+
Rejected,
|
|
9
|
+
Verifier,
|
|
10
|
+
seal,
|
|
11
|
+
sign,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"HEARTBEAT_EVERY",
|
|
16
|
+
"MAX_SKEW",
|
|
17
|
+
"NONCE_TTL",
|
|
18
|
+
"REPORTS_QUEUE",
|
|
19
|
+
"Message",
|
|
20
|
+
"Rejected",
|
|
21
|
+
"Verifier",
|
|
22
|
+
"seal",
|
|
23
|
+
"sign",
|
|
24
|
+
"work_queue",
|
|
25
|
+
]
|