refactor: align worker choice strategy options namespace
[poolifier.git] / src / pools / pool.ts
index f16c54694ab37240e22d47fca1d97fb3d2ec7196..33c3ff3fd779aa63119c75886d35173c0ae390eb 100644 (file)
@@ -75,9 +75,11 @@ export interface PoolInfo {
   workerNodes: number
   idleWorkerNodes: number
   busyWorkerNodes: number
-  runningTasks: number
+  executedTasks: number
+  executingTasks: number
   queuedTasks: number
   maxQueuedTasks: number
+  failedTasks: number
 }
 
 /**
@@ -158,12 +160,6 @@ export interface IPool<
   Data = unknown,
   Response = unknown
 > {
-  /**
-   * Pool type.
-   *
-   * If it is `'dynamic'`, it provides the `max` property.
-   */
-  readonly type: PoolType
   /**
    * Pool information.
    */