X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Futils.ts;h=c7ab2d1e664894bbfba218103ee9d85b15e8b0e8;hb=af7fe15acbe47c6b2236426034dd5cb08c271bbc;hp=a6a52f0c663d246fcd4d2d5a1b560801eaa00921;hpb=32b141fddfba99a275b6e18b5abd97c7a66513be;p=poolifier.git diff --git a/src/pools/utils.ts b/src/pools/utils.ts index a6a52f0c..c7ab2d1e 100644 --- a/src/pools/utils.ts +++ b/src/pools/utils.ts @@ -29,7 +29,7 @@ export const getDefaultTasksQueueOptions = ( concurrency: 1, taskStealing: true, tasksStealingOnBackPressure: true, - tasksFinishedTimeout: 1000 + tasksFinishedTimeout: 2000 } } @@ -351,7 +351,7 @@ export const waitWorkerNodeEvents = async < resolve(events) } }) - if (timeout > 0) { + if (timeout >= 0) { setTimeout(() => { resolve(events) }, timeout)