@abtnode/core 1.16.21 → 1.16.22-beta-079a9053

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.
@@ -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
- process.exit(0);
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.21",
6
+ "version": "1.16.22-beta-079a9053",
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.21",
23
- "@abtnode/auth": "1.16.21",
24
- "@abtnode/certificate-manager": "1.16.21",
25
- "@abtnode/constant": "1.16.21",
26
- "@abtnode/cron": "1.16.21",
27
- "@abtnode/logger": "1.16.21",
28
- "@abtnode/models": "1.16.21",
29
- "@abtnode/queue": "1.16.21",
30
- "@abtnode/rbac": "1.16.21",
31
- "@abtnode/router-provider": "1.16.21",
32
- "@abtnode/static-server": "1.16.21",
33
- "@abtnode/timemachine": "1.16.21",
34
- "@abtnode/util": "1.16.21",
22
+ "@abtnode/analytics": "1.16.22-beta-079a9053",
23
+ "@abtnode/auth": "1.16.22-beta-079a9053",
24
+ "@abtnode/certificate-manager": "1.16.22-beta-079a9053",
25
+ "@abtnode/constant": "1.16.22-beta-079a9053",
26
+ "@abtnode/cron": "1.16.22-beta-079a9053",
27
+ "@abtnode/logger": "1.16.22-beta-079a9053",
28
+ "@abtnode/models": "1.16.22-beta-079a9053",
29
+ "@abtnode/queue": "1.16.22-beta-079a9053",
30
+ "@abtnode/rbac": "1.16.22-beta-079a9053",
31
+ "@abtnode/router-provider": "1.16.22-beta-079a9053",
32
+ "@abtnode/static-server": "1.16.22-beta-079a9053",
33
+ "@abtnode/timemachine": "1.16.22-beta-079a9053",
34
+ "@abtnode/util": "1.16.22-beta-079a9053",
35
35
  "@arcblock/did": "1.18.108",
36
36
  "@arcblock/did-auth": "1.18.108",
37
37
  "@arcblock/did-ext": "^1.18.108",
@@ -42,12 +42,12 @@
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.21",
46
- "@blocklet/env": "1.16.21",
47
- "@blocklet/meta": "1.16.21",
48
- "@blocklet/resolver": "1.16.21",
49
- "@blocklet/sdk": "1.16.21",
50
- "@did-space/client": "^0.3.49",
45
+ "@blocklet/constant": "1.16.22-beta-079a9053",
46
+ "@blocklet/env": "1.16.22-beta-079a9053",
47
+ "@blocklet/meta": "1.16.22-beta-079a9053",
48
+ "@blocklet/resolver": "1.16.22-beta-079a9053",
49
+ "@blocklet/sdk": "1.16.22-beta-079a9053",
50
+ "@did-space/client": "^0.3.50",
51
51
  "@fidm/x509": "^1.2.1",
52
52
  "@ocap/mcrypto": "1.18.108",
53
53
  "@ocap/util": "1.18.108",
@@ -102,5 +102,5 @@
102
102
  "jest": "^27.5.1",
103
103
  "unzipper": "^0.10.11"
104
104
  },
105
- "gitHead": "e4b7651a0e73161cd47ea4f75e84dd6d39c8a990"
105
+ "gitHead": "012ceb3aa8270b79d3a6935e6f1de2f5b9a50348"
106
106
  }