Skip to main content

Interface: RunManagerOptions

Defined in: packages/orchestration/src/run/run-manager.ts:37

Properties​

budgetTotal?​

optional budgetTotal?: number

Defined in: packages/orchestration/src/run/run-manager.ts:58

USD every run this manager starts may spend together (OrchestratorConfig.budgetTotal).


concurrency?​

optional concurrency?: (ticket, agent) => ConcurrencyScope[]

Defined in: packages/orchestration/src/run/run-manager.ts:41

Limits beyond each agent's maxConcurrent (a per-org cap, say), resolved per run.

Parameters​

ticket​

Ticket

agent​

RegisteredAgent

Returns​

ConcurrencyScope[]


heartbeatMs?​

optional heartbeatMs?: number

Defined in: packages/orchestration/src/run/run-manager.ts:48

How often a running run records a heartbeat, renews its slots and checks whether another instance cancelled it (checked as the run streams). Default 30s.


keepAlive?​

optional keepAlive?: (run) => void

Defined in: packages/orchestration/src/run/run-manager.ts:56

Called with every run this manager starts — from the scheduler, a direct dispatch, a resumed question — as a promise that settles (never rejects) when the run does. A serverless host hands it to its platform's waitUntil, so a run a web request dispatched keeps its instance alive after the response is sent instead of being frozen mid-step.

Parameters​

run​

Promise<void>

Returns​

void


slotLeaseMs?​

optional slotLeaseMs?: number

Defined in: packages/orchestration/src/run/run-manager.ts:43

How long a slot is held without renewal. Default 15 minutes.


slots?​

optional slots?: SlotStore

Defined in: packages/orchestration/src/run/run-manager.ts:39

Where concurrency slots are held. Default: this process's memory. Share one (e.g. Postgres) across instances.