@certd/pipeline 1.39.10 → 1.39.12
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/CHANGELOG.md +13 -0
- package/dist/access/api.d.ts +1 -0
- package/dist/access/api.js +3 -0
- package/dist/core/executor.d.ts +2 -0
- package/dist/core/executor.js +6 -2
- package/dist/dt/pipeline.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.39.12](https://github.com/certd/certd/compare/v1.39.11...v1.39.12) (2026-04-29)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
* 524错误时重试3次 ([00e6d58](https://github.com/certd/certd/commit/00e6d580c2f54af70fe96a214aff87c4b96426c2))
|
|
11
|
+
* 优化流水线执行时的状态保存性能 ([e00830b](https://github.com/certd/certd/commit/e00830bebcfe6344499e490bc174de96f9fb22d6))
|
|
12
|
+
|
|
13
|
+
## [1.39.11](https://github.com/certd/certd/compare/v1.39.10...v1.39.11) (2026-04-26)
|
|
14
|
+
|
|
15
|
+
### Performance Improvements
|
|
16
|
+
|
|
17
|
+
* 支持一键安装脚本 ([dc969dd](https://github.com/certd/certd/commit/dc969dd7edb6934a29d6657afefe6f8af056741c))
|
|
18
|
+
|
|
6
19
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @certd/pipeline
|
package/dist/access/api.d.ts
CHANGED
package/dist/access/api.js
CHANGED
package/dist/core/executor.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export type ExecutorOptions = {
|
|
|
14
14
|
pipeline: Pipeline;
|
|
15
15
|
storage: IStorage;
|
|
16
16
|
onChanged: (history: RunHistory) => Promise<void>;
|
|
17
|
+
onFinished: (history: RunHistory) => Promise<void>;
|
|
17
18
|
accessService: IAccessService;
|
|
18
19
|
emailService: IEmailService;
|
|
19
20
|
notificationService: INotificationService;
|
|
@@ -39,6 +40,7 @@ export declare class Executor {
|
|
|
39
40
|
abort: AbortController;
|
|
40
41
|
_inited: boolean;
|
|
41
42
|
onChanged: (history: RunHistory) => Promise<void>;
|
|
43
|
+
onFinished: (history: RunHistory) => Promise<void>;
|
|
42
44
|
constructor(options: ExecutorOptions);
|
|
43
45
|
init(): Promise<void>;
|
|
44
46
|
cancel(): Promise<void>;
|
package/dist/core/executor.js
CHANGED
|
@@ -21,12 +21,16 @@ export class Executor {
|
|
|
21
21
|
abort = new AbortController();
|
|
22
22
|
_inited = false;
|
|
23
23
|
onChanged;
|
|
24
|
+
onFinished;
|
|
24
25
|
constructor(options) {
|
|
25
26
|
this.options = options;
|
|
26
27
|
this.pipeline = cloneDeep(options.pipeline);
|
|
27
28
|
this.onChanged = async (history) => {
|
|
28
29
|
await options.onChanged(history);
|
|
29
30
|
};
|
|
31
|
+
this.onFinished = async (history) => {
|
|
32
|
+
await options.onFinished(history);
|
|
33
|
+
};
|
|
30
34
|
this.pipeline.userId = options.user.id;
|
|
31
35
|
this.contextFactory = new ContextFactory(options.storage);
|
|
32
36
|
this.logger = logger;
|
|
@@ -45,7 +49,7 @@ export class Executor {
|
|
|
45
49
|
async cancel() {
|
|
46
50
|
this.abort.abort();
|
|
47
51
|
this.runtime?.cancel(this.pipeline);
|
|
48
|
-
await this.
|
|
52
|
+
await this.onFinished(this.runtime);
|
|
49
53
|
}
|
|
50
54
|
async run(runtimeId = 0, triggerType) {
|
|
51
55
|
let intervalFlushLogId = undefined;
|
|
@@ -79,7 +83,7 @@ export class Executor {
|
|
|
79
83
|
}
|
|
80
84
|
finally {
|
|
81
85
|
clearInterval(intervalFlushLogId);
|
|
82
|
-
await this.
|
|
86
|
+
await this.onFinished(this.runtime);
|
|
83
87
|
//保存之前移除logs
|
|
84
88
|
const lastRuntime = {
|
|
85
89
|
...this.runtime,
|
package/dist/dt/pipeline.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certd/pipeline",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.39.
|
|
4
|
+
"version": "1.39.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"compile": "tsc --skipLibCheck --watch"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@certd/basic": "^1.39.
|
|
22
|
-
"@certd/plus-core": "^1.39.
|
|
21
|
+
"@certd/basic": "^1.39.12",
|
|
22
|
+
"@certd/plus-core": "^1.39.12",
|
|
23
23
|
"dayjs": "^1.11.7",
|
|
24
24
|
"lodash-es": "^4.17.21",
|
|
25
25
|
"reflect-metadata": "^0.1.13"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"tslib": "^2.8.1",
|
|
46
46
|
"typescript": "^5.4.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "898bc9b9f2f75df11ea0803b144862ba98b7511a"
|
|
49
49
|
}
|