@abtnode/core 1.16.15-beta-324519fc → 1.16.15-beta-a635f48d

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.
@@ -1565,7 +1565,7 @@ class DiskBlockletManager extends BaseBlockletManager {
1565
1565
  try {
1566
1566
  const status = await getProcessState(component.env.processId);
1567
1567
  const oldStatus = component.status;
1568
- if (component.status !== status) {
1568
+ if (!isInProgress(status) && component.status !== status) {
1569
1569
  component.status = status;
1570
1570
  addToUpdates(component.meta.did, status);
1571
1571
  logger.info('will sync status from pm2', { did, status, oldStatus, componentDid: component.meta.did });
@@ -1675,12 +1675,6 @@ class DiskBlockletManager extends BaseBlockletManager {
1675
1675
  const info = await states.node.read();
1676
1676
 
1677
1677
  const crons = [
1678
- {
1679
- name: 'sync-blocklet-status',
1680
- time: '*/60 * * * * *', // 60s
1681
- fn: this._syncBlockletStatus.bind(this),
1682
- options: { runOnInit: false },
1683
- },
1684
1678
  {
1685
1679
  name: 'sync-blocklet-list',
1686
1680
  time: '*/60 * * * * *', // 60s
@@ -2422,18 +2416,6 @@ class DiskBlockletManager extends BaseBlockletManager {
2422
2416
  }
2423
2417
  }
2424
2418
 
2425
- async _syncBlockletStatus() {
2426
- const run = async (blocklet) => {
2427
- try {
2428
- await this.status(blocklet.meta.did);
2429
- } catch (err) {
2430
- logger.error('sync blocklet status failed', { error: err });
2431
- }
2432
- };
2433
- const blocklets = await states.blocklet.getBlocklets();
2434
- blocklets.forEach(run);
2435
- }
2436
-
2437
2419
  async _getChildrenForInstallation(component) {
2438
2420
  if (!component) {
2439
2421
  return [];
@@ -231,6 +231,8 @@ const getLogContent = async (action, args, context, result, info, node) => {
231
231
  return `${args.owner} ${args.reason}`;
232
232
  case 'issuePassportToUser':
233
233
  return `issued **${args.role}** passport to ${user}`;
234
+ case 'downloadLog':
235
+ return `download log for ${args.days} day${args.days > 1 ? 's' : ''}`;
234
236
 
235
237
  // accessKeys
236
238
  case 'createAccessKey':
@@ -1898,7 +1898,6 @@ module.exports = {
1898
1898
  getProcessInfo,
1899
1899
  expandTarball,
1900
1900
  verifyIntegrity,
1901
- statusMap,
1902
1901
  getAppDirs,
1903
1902
  pruneBlockletBundle,
1904
1903
  getDiskInfo,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.15-beta-324519fc",
6
+ "version": "1.16.15-beta-a635f48d",
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.15-beta-324519fc",
23
- "@abtnode/auth": "1.16.15-beta-324519fc",
24
- "@abtnode/certificate-manager": "1.16.15-beta-324519fc",
25
- "@abtnode/constant": "1.16.15-beta-324519fc",
26
- "@abtnode/cron": "1.16.15-beta-324519fc",
27
- "@abtnode/logger": "1.16.15-beta-324519fc",
28
- "@abtnode/models": "1.16.15-beta-324519fc",
29
- "@abtnode/queue": "1.16.15-beta-324519fc",
30
- "@abtnode/rbac": "1.16.15-beta-324519fc",
31
- "@abtnode/router-provider": "1.16.15-beta-324519fc",
32
- "@abtnode/static-server": "1.16.15-beta-324519fc",
33
- "@abtnode/timemachine": "1.16.15-beta-324519fc",
34
- "@abtnode/util": "1.16.15-beta-324519fc",
22
+ "@abtnode/analytics": "1.16.15-beta-a635f48d",
23
+ "@abtnode/auth": "1.16.15-beta-a635f48d",
24
+ "@abtnode/certificate-manager": "1.16.15-beta-a635f48d",
25
+ "@abtnode/constant": "1.16.15-beta-a635f48d",
26
+ "@abtnode/cron": "1.16.15-beta-a635f48d",
27
+ "@abtnode/logger": "1.16.15-beta-a635f48d",
28
+ "@abtnode/models": "1.16.15-beta-a635f48d",
29
+ "@abtnode/queue": "1.16.15-beta-a635f48d",
30
+ "@abtnode/rbac": "1.16.15-beta-a635f48d",
31
+ "@abtnode/router-provider": "1.16.15-beta-a635f48d",
32
+ "@abtnode/static-server": "1.16.15-beta-a635f48d",
33
+ "@abtnode/timemachine": "1.16.15-beta-a635f48d",
34
+ "@abtnode/util": "1.16.15-beta-a635f48d",
35
35
  "@arcblock/did": "1.18.89",
36
36
  "@arcblock/did-auth": "1.18.89",
37
37
  "@arcblock/did-ext": "^1.18.89",
@@ -42,11 +42,11 @@
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
43
  "@arcblock/validator": "^1.18.89",
44
44
  "@arcblock/vc": "1.18.89",
45
- "@blocklet/constant": "1.16.15-beta-324519fc",
46
- "@blocklet/env": "1.16.15-beta-324519fc",
47
- "@blocklet/meta": "1.16.15-beta-324519fc",
48
- "@blocklet/resolver": "1.16.15-beta-324519fc",
49
- "@blocklet/sdk": "1.16.15-beta-324519fc",
45
+ "@blocklet/constant": "1.16.15-beta-a635f48d",
46
+ "@blocklet/env": "1.16.15-beta-a635f48d",
47
+ "@blocklet/meta": "1.16.15-beta-a635f48d",
48
+ "@blocklet/resolver": "1.16.15-beta-a635f48d",
49
+ "@blocklet/sdk": "1.16.15-beta-a635f48d",
50
50
  "@did-space/client": "^0.2.165",
51
51
  "@fidm/x509": "^1.2.1",
52
52
  "@ocap/mcrypto": "1.18.89",
@@ -100,5 +100,5 @@
100
100
  "jest": "^27.5.1",
101
101
  "unzipper": "^0.10.11"
102
102
  },
103
- "gitHead": "b1a9384dc9985e590bee01548ed4f38cba470a6b"
103
+ "gitHead": "a42c00d339896a089694a6275cee988422ecef69"
104
104
  }