gatelineAPI reference
interface OrchestratorsOptions {
    codeRepo?: null | string;
    engineDefaults?: EngineDefaults;
    engineName?: string;
    governor?: GovernorPort;
    heartbeatSeconds?: number;
    limits?: MachineLimits;
    log?: (line: string) => void;
    onSupersede?: (status: CodeTreeStatus) => void;
    repositories: RepositoryEngineConfig[];
    startupNoticeMs?: number;
    startupTimeoutMs?: number;
    stopWaitMs?: number;
}

Properties

codeRepo?: null | string

See OrchestratorOptions.codeRepo.

engineDefaults?: EngineDefaults
engineName?: string

See OrchestratorOptions.engineName: the host part of every engine's id in this process.

governor?: GovernorPort

The one governor for the process; absent, built from limits.

heartbeatSeconds?: number
limits?: MachineLimits
log?: (line: string) => void
onSupersede?: (status: CodeTreeStatus) => void

Fired once for the process, whichever engine's loop confirms the fast-forward first.

repositories: RepositoryEngineConfig[]

One entry per repository, in the order the round-robin serves them. At least one.

startupNoticeMs?: number

After how long a startup still waiting on seeds names them (default STARTUP_WAIT_NOTICE_MS, 5 s).

startupTimeoutMs?: number

How long one repository's startup seed-and-report may take before it is given up on (default STARTUP_SEED_TIMEOUT_MS): it is then marked failed and unregistered until it seeds, and the others start without it.

stopWaitMs?: number

How long each loop's stop() waits for its running pass (default STOP_WAIT_MS, 30 s).