(
@Param('runId') runId: string,
@Query(new ZodValidationPipe(TemporalRunQuerySchema)) query: TemporalRunQueryDto,
@CurrentAuth() auth: AuthContext | null,
)
| 705 | description: 'Cancels a running workflow execution', |
| 706 | }) |
| 707 | async cancel( |
| 708 | @Param('runId') runId: string, |
| 709 | @Query(new ZodValidationPipe(TemporalRunQuerySchema)) query: TemporalRunQueryDto, |
| 710 | @CurrentAuth() auth: AuthContext | null, |
| 711 | ) { |
| 712 | await this.workflowsService.cancelRun(runId, query.temporalRunId, auth); |
| 713 | return { status: 'cancelled', runId }; |
| 714 | } |
| 715 | |
| 716 | @Get('/runs/:runId/trace') |
| 717 | @ApiOkResponse({ |
no test coverage detected