update
This commit is contained in:
+3
-1
@@ -121,12 +121,13 @@ class BaseWorkerPool {
|
||||
|
||||
const stdout = (0, _mergeStream().default)();
|
||||
const stderr = (0, _mergeStream().default)();
|
||||
const {forkOptions, maxRetries, setupArgs} = options;
|
||||
const {forkOptions, maxRetries, resourceLimits, setupArgs} = options;
|
||||
|
||||
for (let i = 0; i < options.numWorkers; i++) {
|
||||
const workerOptions = {
|
||||
forkOptions,
|
||||
maxRetries,
|
||||
resourceLimits,
|
||||
setupArgs,
|
||||
workerId: i,
|
||||
workerPath
|
||||
@@ -177,6 +178,7 @@ class BaseWorkerPool {
|
||||
worker.send(
|
||||
[_types().CHILD_MESSAGE_END, false],
|
||||
emptyMethod,
|
||||
emptyMethod,
|
||||
emptyMethod
|
||||
); // Schedule a force exit in case worker fails to exit gracefully so
|
||||
// await worker.waitForExit() never takes longer than FORCE_EXIT_DELAY
|
||||
|
||||
Reference in New Issue
Block a user