Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-worker

Package Overview
Dependencies
Maintainers
19
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-worker - npm Package Compare versions

Comparing version 0.1.0-alpha-pqr-debug.18665 to 0.1.0-alpha-pqr-debug.18666

1

dist/child.js

@@ -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;

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc