Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.execute({
port: 8080,
workerFile: requestHandlerWorkerFile,
- maxWorkers: Math.round(availableParallelism() / 4),
+ maxWorkers:
+ Math.round(availableParallelism() / 4) < 1
+ ? 1
+ : Math.round(availableParallelism() / 4),
enableTasksQueue: true,
tasksQueueOptions: {
concurrency: 8
pool
.execute({
port: 8080,
- maxWorkers: Math.round(availableParallelism() / 4),
+ maxWorkers:
+ Math.round(availableParallelism() / 4) < 1
+ ? 1
+ : Math.round(availableParallelism() / 4),
workerFile: requestHandlerWorkerFile,
enableTasksQueue: true,
tasksQueueOptions: {