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

egg-cluster

Package Overview
Dependencies
Maintainers
5
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-cluster - npm Package Compare versions

Comparing version 1.20.0 to 1.21.0

5

History.md
1.21.0 / 2018-09-28
===================
* feat: graceful exit when boot failed (#78)
1.20.0 / 2018-09-17

@@ -3,0 +8,0 @@ ===================

3

lib/agent_worker.js

@@ -33,3 +33,4 @@ 'use strict';

consoleLogger.error('[agent_worker] start error, exiting with code:1');
process.exit(1);
process.exitCode = 1;
process.kill(process.pid);
}

@@ -36,0 +37,0 @@

@@ -17,3 +17,2 @@ 'use strict';

const consoleLogger = new ConsoleLogger({ level: process.env.EGG_APP_WORKER_LOGGER_LEVEL });
const Application = require(options.framework).Application;

@@ -28,2 +27,8 @@ debug('new Application with options %j', options);

function exitProcess() {
// Use SIGTERM kill process, ensure trigger the gracefulExit
process.exitCode = 1;
process.kill(process.pid);
}
// exit if worker start timeout

@@ -33,3 +38,3 @@ app.once('startTimeout', startTimeoutHandler);

consoleLogger.error('[app_worker] start timeout, exiting with code:1');
process.exit(1);
exitProcess();
}

@@ -41,3 +46,4 @@

consoleLogger.error('[app_worker] start error, exiting with code:1');
process.exit(1);
exitProcess();
return;
}

@@ -60,3 +66,3 @@

consoleLogger.error('[app_worker] server got error: %s, code: %s', err.message, err.code);
process.exit(1);
exitProcess();
});

@@ -86,3 +92,4 @@

consoleLogger.error('[app_worker] port should be number, but got %s(%s)', port, typeof port);
process.exit(1);
exitProcess();
return;
}

@@ -89,0 +96,0 @@ const args = [ port ];

{
"name": "egg-cluster",
"version": "1.20.0",
"version": "1.21.0",
"description": "cluster manager for egg",

@@ -72,4 +72,4 @@ "main": "index.js",

"ci": {
"version": "6, 8"
"version": "6, 8, 10"
}
}
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