This commit is contained in:
xiaojunnuo
2026-04-28 00:38:57 +08:00
parent e00830bebc
commit cd23ee2055
@@ -803,15 +803,15 @@ export class PipelineService extends BaseService<PipelineEntity> {
if (executor) { if (executor) {
await executor.cancel(); await executor.cancel();
} }
const entity = await this.historyService.info(historyId); // const entity = await this.historyService.info(historyId);
if (entity == null) { // if (entity == null) {
return; // return;
} // }
const pipeline: Pipeline = JSON.parse(entity.pipeline); // const pipeline: Pipeline = JSON.parse(entity.pipeline);
pipeline.status.status = ResultType.canceled; // pipeline.status.status = ResultType.canceled;
pipeline.status.result = ResultType.canceled; // pipeline.status.result = ResultType.canceled;
const runtime = new RunHistory(historyId, null, pipeline); // const runtime = new RunHistory(historyId, null, pipeline);
await this.saveHistory(runtime); // await this.saveHistory(runtime);
} }
private getTriggerType(triggerId, pipeline) { private getTriggerType(triggerId, pipeline) {