mirror of
https://github.com/certd/certd.git
synced 2026-05-14 03:57:30 +08:00
chore: 1
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user