X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fpool.ts;h=7a10373393786ac56c0e7f9a98b69f81639cbbe1;hb=a9780ad2992ef19ef824da2d796433fc7f193ec8;hp=7b5498096315988a93c247223ef582af6a5f99f0;hpb=3baa083708b113152d769123eb87ef8d3c3a7ce7;p=poolifier.git diff --git a/src/pools/pool.ts b/src/pools/pool.ts index 7b549809..7a103733 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -80,6 +80,7 @@ export interface PoolInfo { readonly queuedTasks?: number readonly maxQueuedTasks?: number readonly backPressure?: boolean + readonly stolenTasks?: number readonly failedTasks: number readonly runTime?: { readonly minimum: number @@ -207,9 +208,9 @@ export interface IPool< * Events that can currently be listened to: * * - `'ready'`: Emitted when the number of workers created in the pool has reached the minimum size expected and are ready. - * - `'busy'`: Emitted when the number of workers created in the pool has reached the maximum size expected and are executing at least one task. + * - `'busy'`: Emitted when the number of workers created in the pool has reached the maximum size expected and are executing concurrently their tasks quota. * - `'full'`: Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected. - * - '`destroy`': Emitted when the pool is destroyed. + * - `'destroy'`: Emitted when the pool is destroyed. * - `'error'`: Emitted when an uncaught error occurs. * - `'taskError'`: Emitted when an error occurs while executing a task. * - `'backPressure'`: Emitted when all worker nodes have back pressure (i.e. their tasks queue is full: queue size \>= maximum queue size).