docs: refine code comment about task stealing conditions
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 14 Aug 2024 17:26:17 +0000 (19:26 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 14 Aug 2024 17:34:21 +0000 (19:34 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts

index 8a41821011841db2d754fee027a80fb5b51e8255..77ce43c3702f643f58ea42bd405aa7c86185e522 100644 (file)
@@ -1919,7 +1919,7 @@ export abstract class AbstractPool<
         `Worker node with key '${destinationWorkerNodeKey.toString()}' not found in pool`
       )
     }
-    // Avoid cross task stealing. Could be smarter by checking stealing/stolen worker ids pair.
+    // Avoid cross and cascading task stealing. Could be smarter by checking stealing/stolen worker ids pair.
     if (
       !sourceWorkerNode.info.ready ||
       sourceWorkerNode.info.stolen ||