gatelineAPI reference
interface SchedulerConfig {
    dispatcher: Dispatcher;
    engineId?: string;
    frameworkPrefix?: string;
    governor: GovernorPort;
    hostTip?: HostTip;
    identity: Identity;
    log?: (line: string) => void;
    now?: () => Date;
    onFault?: (
        e: unknown,
        context: string,
        entry: { at: null | string; key: string },
    ) => void;
    push?: boolean;
    registry: null | Registry;
    repoDir: string;
    repository?: string;
    sweepTimeoutMs?: number;
}

Properties

dispatcher: Dispatcher
engineId?: string

The engine process this scheduler belongs to (#502): its engine's engineId, written into each sweep marker it opens as engine: so that a later seed can tell a sweep whose process died from one still running. Absent, markers carry no engine: line, as before #502.

frameworkPrefix?: string

Override the .gateline default when this repo was integrated with a custom gateline init --prefix (#95) — otherwise auto-detected.

governor: GovernorPort

What admits a due sweep (#501): the governor its engine uses, so a sweep and a run dispatch compete for the same slots and the same window. Required: a scheduler with a governor of its own would ignore every limit the operator set.

hostTip?: HostTip

The commit orchestrator.yaml is read at (#500, #501): the one assembleOrchestrator resolved, so sweep schedules come from the same snapshot as the registry and adapter manifests. Absent, the scheduler resolves its own on first use. Facts about sweeps themselves — which are open, when the last merged one ran — are read live at that tip's ref.

identity: Identity
log?: (line: string) => void
now?: () => Date
onFault?: (
    e: unknown,
    context: string,
    entry: { at: null | string; key: string },
) => void

Told when a sweep job's settlement throws (#502), after it is caught and logged: assembleOrchestrator marks the repository's engine failed.

push?: boolean

Push every sweep commit to origin (hosted mode).

registry: null | Registry
repoDir: string
repository?: string

The repository's key with the governor — the same one its engine uses. Defaults to repoDir.

sweepTimeoutMs?: number

Dispatch wall clock before the sweep job is killed (default 30 min).