refactor: allow to disable tasks end wait time
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Dec 2023 18:23:34 +0000 (19:23 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Dec 2023 18:23:34 +0000 (19:23 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/utils.ts

index 3b98fbdc942834d661cd8320deefee9708033566..c7ab2d1e664894bbfba218103ee9d85b15e8b0e8 100644 (file)
@@ -351,7 +351,7 @@ export const waitWorkerNodeEvents = async <
         resolve(events)
       }
     })
-    if (timeout > 0) {
+    if (timeout >= 0) {
       setTimeout(() => {
         resolve(events)
       }, timeout)