Interface: ConcurrencyConfig
Defined in: packages/core/src/core/execution/ConcurrencyGuard.ts:44
Concurrency configuration for a tool builder.
Example
typescript
createTool<AppContext>('billing')
.concurrency({ maxActive: 5, maxQueue: 20 })
.action({ name: 'process_invoice', handler: ... });Properties
maxActive
ts
readonly maxActive: number;Defined in: packages/core/src/core/execution/ConcurrencyGuard.ts:51
Maximum number of concurrent executions allowed. When all slots are occupied, new calls enter the queue.
Minimum
1
maxQueue?
ts
readonly optional maxQueue: number;Defined in: packages/core/src/core/execution/ConcurrencyGuard.ts:61
Maximum number of calls waiting in the backpressure queue. When the queue is full, new calls are immediately rejected with a load-shedding error.
Minimum
0
Default
ts
0