egg-cluster
Advanced tools
Comparing version 1.16.0 to 1.16.1
1.16.1 / 2018-05-16 | ||
=================== | ||
* fix: use --inspect-port after 8.x (#69) | ||
* fix: remove useless unittest (#65) | ||
* fix: master close log print timeout error (#64) | ||
1.16.0 / 2018-03-28 | ||
@@ -3,0 +10,0 @@ =================== |
@@ -14,2 +14,3 @@ 'use strict'; | ||
const utility = require('utility'); | ||
const semver = require('semver'); | ||
@@ -25,2 +26,3 @@ const Manager = require('./utils/manager'); | ||
class Master extends EventEmitter { | ||
@@ -191,3 +193,3 @@ | ||
const debugPort = 5800; | ||
if (this.options.isDebug) opt.execArgv = process.execArgv.concat([ `--debug-port=${debugPort}` ]); | ||
if (this.options.isDebug) opt.execArgv = process.execArgv.concat([ `--${semver.gte(process.version, '8.0.0') ? 'inspect' : 'debug'}-port=${debugPort}` ]); | ||
@@ -521,5 +523,6 @@ const agentWorker = childprocess.fork(agentWorkerFile, args, opt); | ||
this.killAgentWorker(); | ||
this.log('[master] send kill SIGTERM to app workers and agent worker, will exit with code:0 after 100ms'); | ||
// sleep to make sure SIGTERM send to the child processes | ||
const timeout = process.env.EGG_MASTER_CLOSE_TIMEOUT || 5000; | ||
this.log('[master] send kill SIGTERM to app workers and agent worker, will exit with code:0 after %sms', timeout); | ||
this.logger.info('[master] wait %sms', timeout); | ||
@@ -526,0 +529,0 @@ setTimeout(() => { |
@@ -21,3 +21,2 @@ 'use strict'; | ||
cert: '', | ||
typescript: false, | ||
}; | ||
@@ -24,0 +23,0 @@ options = extend(defaults, options); |
{ | ||
"name": "egg-cluster", | ||
"version": "1.16.0", | ||
"version": "1.16.1", | ||
"description": "cluster manager for egg", | ||
@@ -40,7 +40,8 @@ "main": "index.js", | ||
"detect-port": "^1.2.2", | ||
"egg-logger": "^1.6.1", | ||
"egg-utils": "^2.3.0", | ||
"egg-logger": "^1.6.2", | ||
"egg-utils": "^2.4.0", | ||
"get-ready": "^2.0.1", | ||
"graceful-process": "^1.2.0", | ||
"is-type-of": "^1.2.0", | ||
"semver": "^5.5.0", | ||
"sendmessage": "^1.1.0", | ||
@@ -54,7 +55,7 @@ "utility": "^1.13.1" | ||
"coffee": "^4.1.0", | ||
"egg": "^2.4.0", | ||
"egg-bin": "^4.3.7", | ||
"egg": "^2.8.1", | ||
"egg-bin": "^4.7.0", | ||
"egg-ci": "^1.8.0", | ||
"egg-mock": "^3.14.1", | ||
"eslint": "^4.18.1", | ||
"egg-mock": "^3.17.1", | ||
"eslint": "^4.19.1", | ||
"eslint-config-egg": "^7.0.0", | ||
@@ -64,5 +65,4 @@ "mz": "^2.7.0", | ||
"pedding": "^1.1.0", | ||
"semver": "^5.5.0", | ||
"supertest": "^3.0.0", | ||
"ts-node": "^5.0.1", | ||
"supertest": "^3.1.0", | ||
"ts-node": "^6.0.3", | ||
"typescript": "^2.7.2" | ||
@@ -69,0 +69,0 @@ }, |
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
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
43148
16
13
+ Addedsemver@^5.5.0
+ Addedsemver@5.7.2(transitive)
Updatedegg-logger@^1.6.2
Updatedegg-utils@^2.4.0