@contember/engine-server 2.2.0-alpha.7 → 2.2.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/start.cjs +3 -1
- package/dist/development/start.cjs.map +1 -1
- package/dist/development/start.js +3 -1
- package/dist/development/start.js.map +1 -1
- package/dist/production/start.cjs +3 -1
- package/dist/production/start.cjs.map +1 -1
- package/dist/production/start.js +3 -1
- package/dist/production/start.js.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/start.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/engine-server",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/production/index.js",
|
|
6
6
|
"typings": "./dist/types/index.d.ts",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@contember/engine-actions": "2.2.0-alpha.
|
|
27
|
-
"@contember/engine-http": "2.2.0-alpha.
|
|
28
|
-
"@contember/engine-panel": "2.2.0-alpha.
|
|
29
|
-
"@contember/engine-plugins": "2.2.0-alpha.
|
|
30
|
-
"@contember/engine-s3-plugin": "2.2.0-alpha.
|
|
31
|
-
"@contember/engine-vimeo-plugin": "2.2.0-alpha.
|
|
26
|
+
"@contember/engine-actions": "2.2.0-alpha.9",
|
|
27
|
+
"@contember/engine-http": "2.2.0-alpha.9",
|
|
28
|
+
"@contember/engine-panel": "2.2.0-alpha.9",
|
|
29
|
+
"@contember/engine-plugins": "2.2.0-alpha.9",
|
|
30
|
+
"@contember/engine-s3-plugin": "2.2.0-alpha.9",
|
|
31
|
+
"@contember/engine-vimeo-plugin": "2.2.0-alpha.9",
|
|
32
32
|
"graphql": "^16.13.1",
|
|
33
33
|
"pg": "^8.20.0",
|
|
34
34
|
"uuid": "^13.0.0"
|
package/src/start.ts
CHANGED
|
@@ -60,7 +60,10 @@ process.on('warning', message => {
|
|
|
60
60
|
|
|
61
61
|
let initializedProjects: string[] = []
|
|
62
62
|
const terminationJobs: TerminationJob[] = []
|
|
63
|
-
|
|
63
|
+
// A cluster worker is signalled by the master, which has already served the delay.
|
|
64
|
+
listenOnProcessTermination(terminationJobs, logger, {
|
|
65
|
+
sigtermDelayMs: processType === 'clusterWorker' ? 0 : serverConfig.shutdownDelayMs,
|
|
66
|
+
})
|
|
64
67
|
|
|
65
68
|
if (cluster.isMaster) {
|
|
66
69
|
const monitoringPort = serverConfig.monitoringPort
|