Expand description
Parse jobs on the worker: the runner in parse mode over a root’s files, with a per-file
timeout.
Each file of a parse job gets a runner process of its own, a few at once ([dags] parse_concurrency). If a file doesn’t finish within the per-file timeout, or its runner dies
while importing it, the agent stops the runner and records an import error for that file
(see archive/PROJECT.md, Rust/Python integration: parsing granularity).
Structs§
- Parse
Limits - How a parse job runs.
Enums§
- Parse
Error - Why a parse job couldn’t be finished.
Constants§
- RUNNER_
DIED_ EXCEPTION - The exception name of the import error recorded for a file whose runner died.
- TIMEOUT_
EXCEPTION - The exception name of the import error recorded for a file that timed out.
Traits§
- Parse
Runner - Starts runners in parse mode.
- Parse
Session - A started runner in parse mode, after the handshake and the
parserequest.
Functions§
- parse_
files - Parses the files of
request, one at a time, each in a runner of its own: one file’s imports and what they change can’t reach another’s, as they can’t reach a task’s (decision 326). - parse_
files_ with - As
parse_files,limits.concurrencyfiles at once, with the files in the order of the request, answering aScriptOperator’s questions from the script rootsscripts(their copies, decision 293) and recording in each file the script roots it asked about (decision 304).