gatelineAPI reference
interface OrchestratorsHandle {
    engines: RunningEngine[];
    governor: GovernorPort;
    runnerCallback?: RunnerCallback;
    started: Promise<void>;
    abortInFlight(): number;
    inFlightDetail(): RepositoryInFlightJob[];
    stop(): Promise<void>;
}

Properties

engines: RunningEngine[]
governor: GovernorPort
runnerCallback?: RunnerCallback

Present only for a list of one with the runner enabled.

started: Promise<void>

Resolves when every engine's startup pass has finished (#502). The handle is returned before that, so a caller can install its signal handlers while a slow repository is still on its first pass. A stop() called before then stops the passes from admitting anything.

Methods

  • Drain every engine: each loop stops watching, each engine's in-flight dispatches and sweeps run to their closing commits, and each engine then leaves the governor. Idempotent — a supersede and a signal share one drain.

    Returns Promise<void>