Skip to main content

Module executor

Module executor 

Source

Re-exports§

pub use root_lifecycle::SubcLifecycleAdmission;

Modules§

root_lifecycle

Structs§

BindBlockerReaderSnapshot
Non-blocking scheduler explanation attached to a delayed RouteBind warning.
BindBlockerSnapshot
CompletionHandle
Synchronous completion handle used by the executor tests and the future standalone bridge.
DispatchClassQueueSnapshot
DispatchLivenessSnapshot
DispatchLoopLiveness
Progress marker for the scheduler (dispatch) loop, read by the subc stall watchdog from its own thread. Everything here is an atomic or a channel length read, so reading it never waits on the scheduler state mutex that a stalled loop may be blocked on or holding.
DispatchRunningSnapshot
Executor
Concurrent scheduler-dispatch executor.
ExecutorConfig
JobCancellation
Cooperative cancellation for one cancellable executor job.
JobCancellationContextGuard
LongRunningInteractiveJobSnapshot
MutatingLaneSnapshot
RootJobSnapshot
Scheduler occupants of one root, including jobs still waiting to enter their callback. Each call has a unique cancellation token, which distinguishes it from an older job that reused the same transport request ID.
RootMaintenanceExecutor
A root may submit maintenance without keeping its owning executor alive. The weak link avoids a cycle through the executor’s actor context.
SingleFlight
Generation-aware single-flight cache.

Enums§

JobCancelOutcome
Outcome of Executor::cancel_job.
JobClass
Scheduler class used to keep deferrable maintenance from occupying the workers reserved for interactive route binds, tool calls, and bash.
Lane
Scheduler lane for command-handler execution.
MaintenanceCoalesceKey
Idempotent maintenance drains that can share one queued execution.
PreExecutionCancelOutcome
Result of cancelling only work whose command closure has not started.

Constants§

MAINTENANCE_QUEUE_CAP

Traits§

ExecutorApp
Process census callbacks used when an executor adds or removes a root.
ExecutorContext
The context operations already performed at scheduler admission and execution. Associated types let each runtime define the application handle and config-pin guard it uses.

Functions§

current_actor_writer_waiting
True when interactive mutating work (a route-bind configure or a tool edit) is queued on the actor whose job runs on this worker thread, or a detached view publication is parked waiting to write the actor’s epoch.
current_bind_gate_is_shared
True while the job on this worker is a route bind that holds its actor’s epoch gate only for reading.
current_job_cancellation
The cancellation token of the job running on this worker thread, when the job was submitted through Executor::submit_cancellable_async.
current_job_cancelled
current_thread_is_executor_worker
install_job_cancellation
Install a cancellable executor job’s token on a continuation thread.
request_exclusive_rerun
Ask for the shared-hold bind on this worker to be run again as an exclusive writer. Returns false (and does nothing) for every other job.

Type Aliases§

ExecutorJob
RepeatableJob
A route-bind job that can run more than once. The scheduler may admit such a bind beside a running maintenance job or interactive readers with only a shared hold on the actor’s epoch gate; when the configure finds it must change the root, the run is discarded and the same job is queued again as an exclusive writer.