schedr.runner¶
The Python runner: <interpreter> -m schedr.runner {parse,task}.
The worker agent starts it as a subprocess and talks to it over a socket it hands over
already connected (its descriptor in SCHEDR_AGENT_FD; see archive/PROJECT.md, Rust/Python
integration). The runner never decides
retries, enforces timeouts, watches memory or writes log files: the agent does all that from
outside.
Modules
Runs an |
|
Fork server mode: preload libraries once, then fork a runner process per request. |
|
The runner's entry point: the handshake with the agent, then the requested mode. |
|
Parse mode: import DAG files by their ordinary names, and report the DAGs they define. |
|
The agent <-> runner channel: length-prefixed JSON over a Unix socket. |
|
DAG roots are imported from their source, never from bytecode (B59). |
|
Task mode: run one Python task attempt. |
|
What an ended child used ( |
|
How a wait step waits: until its value or its deadline (see |
|
The watcher host: every wait step of one code set, as coroutines in one process. |