Skip to main content

Module parse

Module parse 

Source
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§

ParseLimits
How a parse job runs.

Enums§

ParseError
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§

ParseRunner
Starts runners in parse mode.
ParseSession
A started runner in parse mode, after the handshake and the parse request.

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.concurrency files at once, with the files in the order of the request, answering a ScriptOperator’s questions from the script roots scripts (their copies, decision 293) and recording in each file the script roots it asked about (decision 304).