Module optional_parser_runtime

Module optional_parser_runtime 

Source
Expand description

Process-wide admission and scheduling for the optional parser-pack worker.

StructsΒ§

OptionalParserGroupLease πŸ”’
Panic-safe process-global optional-group activity signal.
OptionalParserRuntime πŸ”’
Synchronous coordinator protected for exactly one optional job group at a time.

EnumsΒ§

OptionalParserRuntimeState πŸ”’
Closed process-wide optional parser state.

ConstantsΒ§

BUILT_IN_PARSE_BATCH_SIZE πŸ”’
Maximum built-in jobs retained in one Rayon result batch.
OPTIONAL_PARSE_NO_PROGRESS_TIMEOUT πŸ”’
Maximum interval without identity-validated worker progress.
OPTIONAL_PARSE_TIMEOUT πŸ”’
Per-file ceiling proven by the fresh-artifact release verifier.
OPTIONAL_RUNTIME_ADMISSION_POLL πŸ”’
Cooperative polling interval while another project owns optional parsing.

StaticsΒ§

OPTIONAL_PARSER_DEACTIVATION_REQUESTED πŸ”’
Whether an inactive project requested cleanup while another project held the worker lease.
OPTIONAL_PARSER_GROUP_ACTIVE πŸ”’
Whether the process-global coordinator is inside one optional parsing group.
OPTIONAL_PARSER_RUNTIME πŸ”’
One process-wide optional worker owner shared by CLI, watcher, and MCP paths.

FunctionsΒ§

combine_optional_operation_and_cleanup πŸ”’
Preserve both an operation failure and a mandatory process-cleanup failure.
deactivate_if_initialized πŸ”’
Request cleanup without making default-core wait behind an active optional group.
ensure_selection_current πŸ”’
Revalidate the project-local selection immediately before optional source admission.
lock_optional_runtime πŸ”’
Acquire the one process-global owner without hiding cancellation behind a blocking lock.
lock_runtime πŸ”’
Poll one concrete coordinator lock under the caller’s cancellation and deadline.
optional_language_id πŸ”’
Return the canonical optional grammar identity for one registry-owned job.
optional_parse_deadline πŸ”’
Bound one worker request by both the operation deadline and the proven file ceiling.
parse_built_in_jobs πŸ”’
Parse non-optional jobs without changing the existing Rayon ownership.
parse_symbol_jobs_controlled πŸ”’
Parse built-in jobs in Rayon and accepted optional jobs in deterministic grammar/path order.
retain_runtime_after_parser_failure πŸ”’
Quarantine one concrete execution owner only when the supervisor reports uncertain cleanup.
runtime_unavailable_error πŸ”’
Construct the stable refusal used after cleanup uncertainty or lock poisoning.
service_pending_deactivation πŸ”’
Apply one pending cleanup transition while the caller owns the process-global state.
sort_optional_jobs πŸ”’
Keep each grammar contiguous and paths stable inside its worker session.
supervisor_error πŸ”’
Preserve task cancellation and deadline state across the supervisor boundary.
terminal_parse_outcome πŸ”’
Return whether later jobs must not start after this outcome.