@abtnode/core 1.16.15-beta-375899b6 → 1.16.15-beta-78ad21d3
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.
|
@@ -523,6 +523,7 @@ class DiskBlockletManager extends BaseBlockletManager {
|
|
|
523
523
|
|
|
524
524
|
if (checkHealthImmediately) {
|
|
525
525
|
await this._onCheckIfStarted(params, { throwOnError });
|
|
526
|
+
blocklet.status = BlockletStatus.running;
|
|
526
527
|
} else {
|
|
527
528
|
this.startQueue.push({
|
|
528
529
|
entity: 'blocklet',
|
|
@@ -215,6 +215,12 @@ class SpacesBackup extends BaseBackup {
|
|
|
215
215
|
return object.name !== '.DS_Store';
|
|
216
216
|
},
|
|
217
217
|
onAfterUpload: async (data) => {
|
|
218
|
+
// @note: 当备份失败时 && 偶然会存在一些其他的备份请求后来发送成功了,此时会造成备份进度紊乱(明明失败了,错误信息显示上传某个文件成功了)的情况,所以失败的备份不需要再发送事件了
|
|
219
|
+
const currentBackup = await states.backup.findOne({ id: this.input.backup.id });
|
|
220
|
+
if (currentBackup.status === 1) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
|
|
218
224
|
logger.info('backup progress', { appDid: this.input.appDid, data });
|
|
219
225
|
const percent = (data.completed * 100) / data.total;
|
|
220
226
|
// 0.8 是因为上传文件到 spaces 占进度的 80%,+ 20 是因为需要累加之前的进度
|
|
@@ -225,7 +231,6 @@ class SpacesBackup extends BaseBackup {
|
|
|
225
231
|
progress,
|
|
226
232
|
message: progressMessage,
|
|
227
233
|
});
|
|
228
|
-
|
|
229
234
|
this.input.event.emit(BlockletEvents.backupProgress, {
|
|
230
235
|
appDid: this.input.appDid,
|
|
231
236
|
meta: { did: this.input.appDid },
|
package/lib/util/blocklet.js
CHANGED
|
@@ -512,8 +512,6 @@ const startBlockletProcess = async (
|
|
|
512
512
|
|
|
513
513
|
const { processId, logsDir, appDir } = b.env;
|
|
514
514
|
|
|
515
|
-
validateBlockletEntry(appDir, b.meta);
|
|
516
|
-
|
|
517
515
|
if (skippedProcessIds.includes(processId)) {
|
|
518
516
|
logger.info(`skip start skipped process ${processId}`);
|
|
519
517
|
return;
|
|
@@ -524,6 +522,10 @@ const startBlockletProcess = async (
|
|
|
524
522
|
return;
|
|
525
523
|
}
|
|
526
524
|
|
|
525
|
+
if (b.mode !== BLOCKLET_MODES.DEVELOPMENT) {
|
|
526
|
+
validateBlockletEntry(appDir, b.meta);
|
|
527
|
+
}
|
|
528
|
+
|
|
527
529
|
const { cwd, script, args, environmentObj, interpreter, interpreterArgs } = getComponentStartEngine(b, {
|
|
528
530
|
e2eMode,
|
|
529
531
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.15-beta-
|
|
6
|
+
"version": "1.16.15-beta-78ad21d3",
|
|
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-
|
|
23
|
-
"@abtnode/auth": "1.16.15-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.15-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.15-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.15-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.15-beta-
|
|
28
|
-
"@abtnode/models": "1.16.15-beta-
|
|
29
|
-
"@abtnode/queue": "1.16.15-beta-
|
|
30
|
-
"@abtnode/rbac": "1.16.15-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.16.15-beta-
|
|
32
|
-
"@abtnode/static-server": "1.16.15-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.16.15-beta-
|
|
34
|
-
"@abtnode/util": "1.16.15-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.15-beta-78ad21d3",
|
|
23
|
+
"@abtnode/auth": "1.16.15-beta-78ad21d3",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.15-beta-78ad21d3",
|
|
25
|
+
"@abtnode/constant": "1.16.15-beta-78ad21d3",
|
|
26
|
+
"@abtnode/cron": "1.16.15-beta-78ad21d3",
|
|
27
|
+
"@abtnode/logger": "1.16.15-beta-78ad21d3",
|
|
28
|
+
"@abtnode/models": "1.16.15-beta-78ad21d3",
|
|
29
|
+
"@abtnode/queue": "1.16.15-beta-78ad21d3",
|
|
30
|
+
"@abtnode/rbac": "1.16.15-beta-78ad21d3",
|
|
31
|
+
"@abtnode/router-provider": "1.16.15-beta-78ad21d3",
|
|
32
|
+
"@abtnode/static-server": "1.16.15-beta-78ad21d3",
|
|
33
|
+
"@abtnode/timemachine": "1.16.15-beta-78ad21d3",
|
|
34
|
+
"@abtnode/util": "1.16.15-beta-78ad21d3",
|
|
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-
|
|
46
|
-
"@blocklet/meta": "1.16.15-beta-
|
|
47
|
-
"@blocklet/resolver": "1.16.15-beta-
|
|
48
|
-
"@blocklet/sdk": "1.16.15-beta-
|
|
49
|
-
"@did-space/client": "^0.2.
|
|
45
|
+
"@blocklet/constant": "1.16.15-beta-78ad21d3",
|
|
46
|
+
"@blocklet/meta": "1.16.15-beta-78ad21d3",
|
|
47
|
+
"@blocklet/resolver": "1.16.15-beta-78ad21d3",
|
|
48
|
+
"@blocklet/sdk": "1.16.15-beta-78ad21d3",
|
|
49
|
+
"@did-space/client": "^0.2.163",
|
|
50
50
|
"@fidm/x509": "^1.2.1",
|
|
51
51
|
"@ocap/mcrypto": "1.18.89",
|
|
52
52
|
"@ocap/util": "1.18.89",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"jest": "^27.5.1",
|
|
99
99
|
"unzipper": "^0.10.11"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "a35426f2860e20b347b4df1635c5934fcac5ad83"
|
|
102
102
|
}
|