Default to ROUND_ROBIN poolifier tasks scheduling until
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 17 Oct 2022 09:16:17 +0000 (11:16 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 17 Oct 2022 09:16:17 +0000 (11:16 +0200)
https://github.com/poolifier/poolifier/issues/596 is fixed

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Configuration.ts

index db0eebb70eecbc0641f0ebb4b28416cdd5075020..8c13db91fa84c0425eb1d5ebcd0c3d0cce46bbea 100644 (file)
@@ -219,7 +219,7 @@ export default class Configuration {
         ? Configuration.getConfig().workerPoolMaxSize
         : WorkerConstants.DEFAULT_POOL_MAX_SIZE,
       poolStrategy:
-        Configuration.getConfig().workerPoolStrategy ?? WorkerChoiceStrategies.FAIR_SHARE,
+        Configuration.getConfig().workerPoolStrategy ?? WorkerChoiceStrategies.ROUND_ROBIN,
     };
     if (Configuration.objectHasOwnProperty(Configuration.getConfig(), 'worker')) {
       workerConfiguration = { ...workerConfiguration, ...Configuration.getConfig().worker };