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

coroutines

Runs an async def task's coroutine in the attempt's own event loop.

fork_server

Fork server mode: preload libraries once, then fork a runner process per request.

main

The runner's entry point: the handshake with the agent, then the requested mode.

parse

Parse mode: import DAG files by their ordinary names, and report the DAGs they define.

protocol

The agent <-> runner channel: length-prefixed JSON over a Unix socket.

sources

DAG roots are imported from their source, never from bytecode (B59).

task

Task mode: run one Python task attempt.

usage

What an ended child used (rusage), read by its parent without reaping it.

waiting

How a wait step waits: until its value or its deadline (see schedr.sensors).

watchers

The watcher host: every wait step of one code set, as coroutines in one process.