Interface: RunManagerOptions
Defined in: packages/orchestration/src/run/run-manager.ts:37
Properties
budgetTotal?
optionalbudgetTotal?:number
Defined in: packages/orchestration/src/run/run-manager.ts:58
USD every run this manager starts may spend together (OrchestratorConfig.budgetTotal).
concurrency?
optionalconcurrency?: (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
agent
Returns
heartbeatMs?
optionalheartbeatMs?: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?
optionalkeepAlive?: (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?
optionalslotLeaseMs?:number
Defined in: packages/orchestration/src/run/run-manager.ts:43
How long a slot is held without renewal. Default 15 minutes.
slots?
optionalslots?: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.