fix: fix worker node cross tasks stealing
[poolifier.git] / src / pools / worker.ts
index 9a27d8a5056bb7b4b222f2d210803699ab95ad0d..9c8b77fc623b68ed2a25aed883531dfa5e25cf70 100644 (file)
@@ -154,6 +154,11 @@ export interface WorkerInfo {
    * Ready flag.
    */
   ready: boolean
+  /**
+   * Stealing flag.
+   * This flag is set to `true` when worker node is stealing tasks from another worker node.
+   */
+  stealing: boolean
   /**
    * Task function names.
    */