feat: add queued tasks end timeout support to worker node termination
[poolifier.git] / src / pools / pool.ts
index 7bc8cf850b105983907d7b74cbab618121f8560b..6293efb6edf8e89026242b9f6fce20dc9fe006d2 100644 (file)
@@ -122,6 +122,12 @@ export interface TasksQueueOptions {
    * @defaultValue true
    */
   readonly tasksStealingOnBackPressure?: boolean
+  /**
+   * Queued tasks finished timeout in milliseconds at worker node termination.
+   *
+   * @defaultValue 1000
+   */
+  readonly tasksFinishedTimeout?: number
 }
 
 /**