mirror of
https://github.com/certd/certd.git
synced 2026-05-02 11:37:25 +08:00
chore: 1
This commit is contained in:
@@ -803,15 +803,15 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
||||
if (executor) {
|
||||
await executor.cancel();
|
||||
}
|
||||
const entity = await this.historyService.info(historyId);
|
||||
if (entity == null) {
|
||||
return;
|
||||
}
|
||||
const pipeline: Pipeline = JSON.parse(entity.pipeline);
|
||||
pipeline.status.status = ResultType.canceled;
|
||||
pipeline.status.result = ResultType.canceled;
|
||||
const runtime = new RunHistory(historyId, null, pipeline);
|
||||
await this.saveHistory(runtime);
|
||||
// const entity = await this.historyService.info(historyId);
|
||||
// if (entity == null) {
|
||||
// return;
|
||||
// }
|
||||
// const pipeline: Pipeline = JSON.parse(entity.pipeline);
|
||||
// pipeline.status.status = ResultType.canceled;
|
||||
// pipeline.status.result = ResultType.canceled;
|
||||
// const runtime = new RunHistory(historyId, null, pipeline);
|
||||
// await this.saveHistory(runtime);
|
||||
}
|
||||
|
||||
private getTriggerType(triggerId, pipeline) {
|
||||
|
||||
Reference in New Issue
Block a user