perf: 支持已跳过的步骤重新运行

This commit is contained in:
xiaojunnuo
2024-09-02 18:36:12 +08:00
parent 724a85028b
commit ea775adae1
20 changed files with 105 additions and 87 deletions
@@ -87,9 +87,9 @@ export class PipelineController extends CrudController<PipelineService> {
}
@Post('/trigger', { summary: Constants.per.authOnly })
async trigger(@Query('id') id: number) {
async trigger(@Query('id') id: number, @Query('stepId') stepId?: string) {
await this.authService.checkEntityUserId(this.ctx, this.getService(), id);
await this.service.trigger(id);
await this.service.trigger(id, stepId);
return this.ok({});
}