gatsby-worker
Advanced tools
Comparing version 0.1.0-alpha-pqr-debug.18665 to 0.1.0-alpha-pqr-debug.18666
@@ -78,2 +78,3 @@ "use strict"; | ||
process.off(`message`, messageHandler); | ||
process.kill(process.pid, `SIGTERM`); | ||
} else if (msg[0] === _types.CUSTOM_MESSAGE) { | ||
@@ -80,0 +81,0 @@ for (const listener of listeners) { |
@@ -102,2 +102,7 @@ "use strict"; | ||
worker.on(`exit`, (code, signal) => { | ||
process.stdout.write(`[outside] Worker ${workerId} exitted with ${JSON.stringify({ | ||
code, | ||
signal | ||
})}\n`); | ||
if (workerInfo.currentTask) { | ||
@@ -171,2 +176,3 @@ // worker exited without finishing a task | ||
end() { | ||
process.stdout.write(`[gatsby-worker] .end() called\n`); | ||
const results = this.workers.map(async workerInfo => { | ||
@@ -178,3 +184,4 @@ // tell worker to end gracefully | ||
const forceExitTimeout = setTimeout(() => { | ||
workerInfo.worker.kill(`SIGKILL`); | ||
process.stdout.write(`[gatsby-worker] Sending SIGTERM to ${workerInfo.workerId}\n`); | ||
workerInfo.worker.kill(`SIGTERM`); | ||
}, 1000); | ||
@@ -181,0 +188,0 @@ const exitResult = await workerInfo.exitedPromise; |
{ | ||
"name": "gatsby-worker", | ||
"description": "Utility to create worker pools", | ||
"version": "0.1.0-alpha-pqr-debug.18665+0164976113", | ||
"version": "0.1.0-alpha-pqr-debug.18666+b0cc844ec0", | ||
"author": "Michal Piechowiak<misiek.piechowiak@gmail.com>", | ||
@@ -41,3 +41,3 @@ "bugs": { | ||
}, | ||
"gitHead": "01649761137fec443040564b195de8e7731e8cf6" | ||
"gitHead": "b0cc844ec05cbf1419358065be3b104094d669b4" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
27744
480