perf: 批量运行优化,支持普通运行和强制重新运行

This commit is contained in:
xiaojunnuo
2025-12-29 15:31:33 +08:00
parent 07f0aa45ef
commit 039c62b09b
7 changed files with 106 additions and 29 deletions
@@ -192,8 +192,8 @@ export class PipelineController extends CrudController<PipelineService> {
}
@Post('/batchRerun', { summary: Constants.per.authOnly })
async batchRerun(@Body('ids') ids: number[]) {
await this.service.batchRerun(ids, this.getUserId());
async batchRerun(@Body('ids') ids: number[], @Body('force') force: boolean) {
await this.service.batchRerun(ids, this.getUserId(), force);
return this.ok({});
}
}