@abtnode/core 1.17.2-beta-20251113-121338-9c917e68 → 1.17.2-beta-20251113-233643-ab2254af

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.
@@ -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 * 120,
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 = `${did}-start-not-input-component-dids`;
804
+ const lockName = `start-not-input-component-dids-${did}`;
799
805
  const shouldLock = !inputComponentDids?.length;
800
806
 
801
807
  if (shouldLock) {
802
- await statusLock.acquire(lockName);
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 statusLock.releaseLock(lockName);
915
+ await startLock.releaseLock(lockName);
910
916
  }
911
917
  }
912
918
  }
@@ -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-121338-9c917e68",
6
+ "version": "1.17.2-beta-20251113-233643-ab2254af",
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-121338-9c917e68",
21
- "@abtnode/auth": "1.17.2-beta-20251113-121338-9c917e68",
22
- "@abtnode/certificate-manager": "1.17.2-beta-20251113-121338-9c917e68",
23
- "@abtnode/constant": "1.17.2-beta-20251113-121338-9c917e68",
24
- "@abtnode/cron": "1.17.2-beta-20251113-121338-9c917e68",
25
- "@abtnode/db-cache": "1.17.2-beta-20251113-121338-9c917e68",
26
- "@abtnode/docker-utils": "1.17.2-beta-20251113-121338-9c917e68",
27
- "@abtnode/logger": "1.17.2-beta-20251113-121338-9c917e68",
28
- "@abtnode/models": "1.17.2-beta-20251113-121338-9c917e68",
29
- "@abtnode/queue": "1.17.2-beta-20251113-121338-9c917e68",
30
- "@abtnode/rbac": "1.17.2-beta-20251113-121338-9c917e68",
31
- "@abtnode/router-provider": "1.17.2-beta-20251113-121338-9c917e68",
32
- "@abtnode/static-server": "1.17.2-beta-20251113-121338-9c917e68",
33
- "@abtnode/timemachine": "1.17.2-beta-20251113-121338-9c917e68",
34
- "@abtnode/util": "1.17.2-beta-20251113-121338-9c917e68",
20
+ "@abtnode/analytics": "1.17.2-beta-20251113-233643-ab2254af",
21
+ "@abtnode/auth": "1.17.2-beta-20251113-233643-ab2254af",
22
+ "@abtnode/certificate-manager": "1.17.2-beta-20251113-233643-ab2254af",
23
+ "@abtnode/constant": "1.17.2-beta-20251113-233643-ab2254af",
24
+ "@abtnode/cron": "1.17.2-beta-20251113-233643-ab2254af",
25
+ "@abtnode/db-cache": "1.17.2-beta-20251113-233643-ab2254af",
26
+ "@abtnode/docker-utils": "1.17.2-beta-20251113-233643-ab2254af",
27
+ "@abtnode/logger": "1.17.2-beta-20251113-233643-ab2254af",
28
+ "@abtnode/models": "1.17.2-beta-20251113-233643-ab2254af",
29
+ "@abtnode/queue": "1.17.2-beta-20251113-233643-ab2254af",
30
+ "@abtnode/rbac": "1.17.2-beta-20251113-233643-ab2254af",
31
+ "@abtnode/router-provider": "1.17.2-beta-20251113-233643-ab2254af",
32
+ "@abtnode/static-server": "1.17.2-beta-20251113-233643-ab2254af",
33
+ "@abtnode/timemachine": "1.17.2-beta-20251113-233643-ab2254af",
34
+ "@abtnode/util": "1.17.2-beta-20251113-233643-ab2254af",
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-121338-9c917e68",
46
+ "@blocklet/constant": "1.17.2-beta-20251113-233643-ab2254af",
47
47
  "@blocklet/did-space-js": "^1.2.2",
48
- "@blocklet/env": "1.17.2-beta-20251113-121338-9c917e68",
48
+ "@blocklet/env": "1.17.2-beta-20251113-233643-ab2254af",
49
49
  "@blocklet/error": "^0.3.2",
50
- "@blocklet/meta": "1.17.2-beta-20251113-121338-9c917e68",
51
- "@blocklet/resolver": "1.17.2-beta-20251113-121338-9c917e68",
52
- "@blocklet/sdk": "1.17.2-beta-20251113-121338-9c917e68",
53
- "@blocklet/server-js": "1.17.2-beta-20251113-121338-9c917e68",
54
- "@blocklet/store": "1.17.2-beta-20251113-121338-9c917e68",
50
+ "@blocklet/meta": "1.17.2-beta-20251113-233643-ab2254af",
51
+ "@blocklet/resolver": "1.17.2-beta-20251113-233643-ab2254af",
52
+ "@blocklet/sdk": "1.17.2-beta-20251113-233643-ab2254af",
53
+ "@blocklet/server-js": "1.17.2-beta-20251113-233643-ab2254af",
54
+ "@blocklet/store": "1.17.2-beta-20251113-233643-ab2254af",
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": "82362ffba5d50f01774b257b9cd8143adeb7a898"
119
+ "gitHead": "b0b39ab22bcee6e5c0e280f1799bcb5df5132e6c"
120
120
  }