@abtnode/core 1.16.21 → 1.16.22-beta-f47f2cf7
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/lib/processes/updater.js +8 -2
- package/package.json +20 -20
package/lib/processes/updater.js
CHANGED
|
@@ -138,7 +138,7 @@ const sock = axon.socket('rep');
|
|
|
138
138
|
const port = Number(process.env.ABT_NODE_UPDATER_PORT);
|
|
139
139
|
sock.bind(port, '127.0.0.1');
|
|
140
140
|
sock.on('message', async (raw, reply) => {
|
|
141
|
-
console.info('receive', { raw });
|
|
141
|
+
console.info('receive', { raw, state });
|
|
142
142
|
|
|
143
143
|
try {
|
|
144
144
|
const message = JSON.parse(raw);
|
|
@@ -163,7 +163,13 @@ sock.on('message', async (raw, reply) => {
|
|
|
163
163
|
} else {
|
|
164
164
|
reply('Terminate myself after this message');
|
|
165
165
|
setTimeout(() => {
|
|
166
|
-
|
|
166
|
+
// The lock state may change within the timeout, so we need to check again
|
|
167
|
+
// Assume signal sequence: shutdown(timer) -> install(lock), when timer run out, we should not exit
|
|
168
|
+
if (state.locked) {
|
|
169
|
+
console.info('Refuse to terminate myself because locked', state);
|
|
170
|
+
} else {
|
|
171
|
+
process.exit(0);
|
|
172
|
+
}
|
|
167
173
|
}, 60 * 1000);
|
|
168
174
|
}
|
|
169
175
|
} else if (message.command === 'ping') {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.22-beta-f47f2cf7",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/analytics": "1.16.
|
|
23
|
-
"@abtnode/auth": "1.16.
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.
|
|
25
|
-
"@abtnode/constant": "1.16.
|
|
26
|
-
"@abtnode/cron": "1.16.
|
|
27
|
-
"@abtnode/logger": "1.16.
|
|
28
|
-
"@abtnode/models": "1.16.
|
|
29
|
-
"@abtnode/queue": "1.16.
|
|
30
|
-
"@abtnode/rbac": "1.16.
|
|
31
|
-
"@abtnode/router-provider": "1.16.
|
|
32
|
-
"@abtnode/static-server": "1.16.
|
|
33
|
-
"@abtnode/timemachine": "1.16.
|
|
34
|
-
"@abtnode/util": "1.16.
|
|
22
|
+
"@abtnode/analytics": "1.16.22-beta-f47f2cf7",
|
|
23
|
+
"@abtnode/auth": "1.16.22-beta-f47f2cf7",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.22-beta-f47f2cf7",
|
|
25
|
+
"@abtnode/constant": "1.16.22-beta-f47f2cf7",
|
|
26
|
+
"@abtnode/cron": "1.16.22-beta-f47f2cf7",
|
|
27
|
+
"@abtnode/logger": "1.16.22-beta-f47f2cf7",
|
|
28
|
+
"@abtnode/models": "1.16.22-beta-f47f2cf7",
|
|
29
|
+
"@abtnode/queue": "1.16.22-beta-f47f2cf7",
|
|
30
|
+
"@abtnode/rbac": "1.16.22-beta-f47f2cf7",
|
|
31
|
+
"@abtnode/router-provider": "1.16.22-beta-f47f2cf7",
|
|
32
|
+
"@abtnode/static-server": "1.16.22-beta-f47f2cf7",
|
|
33
|
+
"@abtnode/timemachine": "1.16.22-beta-f47f2cf7",
|
|
34
|
+
"@abtnode/util": "1.16.22-beta-f47f2cf7",
|
|
35
35
|
"@arcblock/did": "1.18.108",
|
|
36
36
|
"@arcblock/did-auth": "1.18.108",
|
|
37
37
|
"@arcblock/did-ext": "^1.18.108",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@arcblock/pm2-events": "^0.0.5",
|
|
43
43
|
"@arcblock/validator": "^1.18.108",
|
|
44
44
|
"@arcblock/vc": "1.18.108",
|
|
45
|
-
"@blocklet/constant": "1.16.
|
|
46
|
-
"@blocklet/env": "1.16.
|
|
47
|
-
"@blocklet/meta": "1.16.
|
|
48
|
-
"@blocklet/resolver": "1.16.
|
|
49
|
-
"@blocklet/sdk": "1.16.
|
|
45
|
+
"@blocklet/constant": "1.16.22-beta-f47f2cf7",
|
|
46
|
+
"@blocklet/env": "1.16.22-beta-f47f2cf7",
|
|
47
|
+
"@blocklet/meta": "1.16.22-beta-f47f2cf7",
|
|
48
|
+
"@blocklet/resolver": "1.16.22-beta-f47f2cf7",
|
|
49
|
+
"@blocklet/sdk": "1.16.22-beta-f47f2cf7",
|
|
50
50
|
"@did-space/client": "^0.3.49",
|
|
51
51
|
"@fidm/x509": "^1.2.1",
|
|
52
52
|
"@ocap/mcrypto": "1.18.108",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"jest": "^27.5.1",
|
|
103
103
|
"unzipper": "^0.10.11"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "428b62fcd74f971338b0852c0fce6ce367b0da90"
|
|
106
106
|
}
|