@abtnode/core 1.17.2-beta-20251113-121338-9c917e68 → 1.17.2-beta-20251113-212234-9e640edd
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/blocklet/manager/disk.js +10 -4
- package/lib/util/blocklet.js +4 -0
- package/package.json +24 -24
|
@@ -259,7 +259,13 @@ const { formatEnvironments, getBlockletMeta, validateOwner, isCLI } = util;
|
|
|
259
259
|
|
|
260
260
|
const statusLock = new DBCache(() => ({
|
|
261
261
|
prefix: 'blocklet-status-lock',
|
|
262
|
-
ttl: 1000 *
|
|
262
|
+
ttl: 1000 * 60,
|
|
263
|
+
...getAbtNodeRedisAndSQLiteUrl(),
|
|
264
|
+
}));
|
|
265
|
+
|
|
266
|
+
const startLock = new DBCache(() => ({
|
|
267
|
+
prefix: 'blocklet-start-lock',
|
|
268
|
+
ttl: process.env.NODE_ENV === 'test' ? 100 : 1000 * 60,
|
|
263
269
|
...getAbtNodeRedisAndSQLiteUrl(),
|
|
264
270
|
}));
|
|
265
271
|
|
|
@@ -795,11 +801,11 @@ class DiskBlockletManager extends BaseBlockletManager {
|
|
|
795
801
|
},
|
|
796
802
|
context
|
|
797
803
|
) {
|
|
798
|
-
const lockName =
|
|
804
|
+
const lockName = `start-not-input-component-dids-${did}`;
|
|
799
805
|
const shouldLock = !inputComponentDids?.length;
|
|
800
806
|
|
|
801
807
|
if (shouldLock) {
|
|
802
|
-
await
|
|
808
|
+
await startLock.acquire(lockName);
|
|
803
809
|
}
|
|
804
810
|
|
|
805
811
|
try {
|
|
@@ -906,7 +912,7 @@ class DiskBlockletManager extends BaseBlockletManager {
|
|
|
906
912
|
return rest[0];
|
|
907
913
|
} finally {
|
|
908
914
|
if (shouldLock) {
|
|
909
|
-
await
|
|
915
|
+
await startLock.releaseLock(lockName);
|
|
910
916
|
}
|
|
911
917
|
}
|
|
912
918
|
}
|
package/lib/util/blocklet.js
CHANGED
|
@@ -1158,6 +1158,10 @@ const checkBlockletProcessHealthy = async (
|
|
|
1158
1158
|
blocklet,
|
|
1159
1159
|
{ minConsecutiveTime, timeout, componentDids, setBlockletRunning, isGreen = false, appDid } = {}
|
|
1160
1160
|
) => {
|
|
1161
|
+
if (process.env.NODE_ENV === 'test' && process.env.ABT_NODE_TEST_MIN_CONSECUTIVE_TIME) {
|
|
1162
|
+
// eslint-disable-next-line no-param-reassign
|
|
1163
|
+
timeout = Math.max(+process.env.ABT_NODE_TEST_MIN_CONSECUTIVE_TIME * 10, minConsecutiveTime + 1);
|
|
1164
|
+
}
|
|
1161
1165
|
await forEachBlocklet(
|
|
1162
1166
|
blocklet,
|
|
1163
1167
|
async (b) => {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.2-beta-20251113-
|
|
6
|
+
"version": "1.17.2-beta-20251113-212234-9e640edd",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@abtnode/analytics": "1.17.2-beta-20251113-
|
|
21
|
-
"@abtnode/auth": "1.17.2-beta-20251113-
|
|
22
|
-
"@abtnode/certificate-manager": "1.17.2-beta-20251113-
|
|
23
|
-
"@abtnode/constant": "1.17.2-beta-20251113-
|
|
24
|
-
"@abtnode/cron": "1.17.2-beta-20251113-
|
|
25
|
-
"@abtnode/db-cache": "1.17.2-beta-20251113-
|
|
26
|
-
"@abtnode/docker-utils": "1.17.2-beta-20251113-
|
|
27
|
-
"@abtnode/logger": "1.17.2-beta-20251113-
|
|
28
|
-
"@abtnode/models": "1.17.2-beta-20251113-
|
|
29
|
-
"@abtnode/queue": "1.17.2-beta-20251113-
|
|
30
|
-
"@abtnode/rbac": "1.17.2-beta-20251113-
|
|
31
|
-
"@abtnode/router-provider": "1.17.2-beta-20251113-
|
|
32
|
-
"@abtnode/static-server": "1.17.2-beta-20251113-
|
|
33
|
-
"@abtnode/timemachine": "1.17.2-beta-20251113-
|
|
34
|
-
"@abtnode/util": "1.17.2-beta-20251113-
|
|
20
|
+
"@abtnode/analytics": "1.17.2-beta-20251113-212234-9e640edd",
|
|
21
|
+
"@abtnode/auth": "1.17.2-beta-20251113-212234-9e640edd",
|
|
22
|
+
"@abtnode/certificate-manager": "1.17.2-beta-20251113-212234-9e640edd",
|
|
23
|
+
"@abtnode/constant": "1.17.2-beta-20251113-212234-9e640edd",
|
|
24
|
+
"@abtnode/cron": "1.17.2-beta-20251113-212234-9e640edd",
|
|
25
|
+
"@abtnode/db-cache": "1.17.2-beta-20251113-212234-9e640edd",
|
|
26
|
+
"@abtnode/docker-utils": "1.17.2-beta-20251113-212234-9e640edd",
|
|
27
|
+
"@abtnode/logger": "1.17.2-beta-20251113-212234-9e640edd",
|
|
28
|
+
"@abtnode/models": "1.17.2-beta-20251113-212234-9e640edd",
|
|
29
|
+
"@abtnode/queue": "1.17.2-beta-20251113-212234-9e640edd",
|
|
30
|
+
"@abtnode/rbac": "1.17.2-beta-20251113-212234-9e640edd",
|
|
31
|
+
"@abtnode/router-provider": "1.17.2-beta-20251113-212234-9e640edd",
|
|
32
|
+
"@abtnode/static-server": "1.17.2-beta-20251113-212234-9e640edd",
|
|
33
|
+
"@abtnode/timemachine": "1.17.2-beta-20251113-212234-9e640edd",
|
|
34
|
+
"@abtnode/util": "1.17.2-beta-20251113-212234-9e640edd",
|
|
35
35
|
"@aigne/aigne-hub": "^0.10.5",
|
|
36
36
|
"@arcblock/did": "^1.27.4",
|
|
37
37
|
"@arcblock/did-connect-js": "^1.27.4",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"@arcblock/pm2-events": "^0.0.5",
|
|
44
44
|
"@arcblock/validator": "^1.27.4",
|
|
45
45
|
"@arcblock/vc": "^1.27.4",
|
|
46
|
-
"@blocklet/constant": "1.17.2-beta-20251113-
|
|
46
|
+
"@blocklet/constant": "1.17.2-beta-20251113-212234-9e640edd",
|
|
47
47
|
"@blocklet/did-space-js": "^1.2.2",
|
|
48
|
-
"@blocklet/env": "1.17.2-beta-20251113-
|
|
48
|
+
"@blocklet/env": "1.17.2-beta-20251113-212234-9e640edd",
|
|
49
49
|
"@blocklet/error": "^0.3.2",
|
|
50
|
-
"@blocklet/meta": "1.17.2-beta-20251113-
|
|
51
|
-
"@blocklet/resolver": "1.17.2-beta-20251113-
|
|
52
|
-
"@blocklet/sdk": "1.17.2-beta-20251113-
|
|
53
|
-
"@blocklet/server-js": "1.17.2-beta-20251113-
|
|
54
|
-
"@blocklet/store": "1.17.2-beta-20251113-
|
|
50
|
+
"@blocklet/meta": "1.17.2-beta-20251113-212234-9e640edd",
|
|
51
|
+
"@blocklet/resolver": "1.17.2-beta-20251113-212234-9e640edd",
|
|
52
|
+
"@blocklet/sdk": "1.17.2-beta-20251113-212234-9e640edd",
|
|
53
|
+
"@blocklet/server-js": "1.17.2-beta-20251113-212234-9e640edd",
|
|
54
|
+
"@blocklet/store": "1.17.2-beta-20251113-212234-9e640edd",
|
|
55
55
|
"@blocklet/theme": "^3.2.3",
|
|
56
56
|
"@fidm/x509": "^1.2.1",
|
|
57
57
|
"@ocap/mcrypto": "^1.27.4",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"express": "^4.18.2",
|
|
117
117
|
"unzipper": "^0.10.11"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "ee25481c457076c9c7aa7f094dc1771301065f5a"
|
|
120
120
|
}
|