MCPcopy Create free account
hub / github.com/ShipSecAI/studio / cancel

Method cancel

backend/src/workflows/workflows.controller.ts:707–714  ·  view source on GitHub ↗
(
    @Param('runId') runId: string,
    @Query(new ZodValidationPipe(TemporalRunQuerySchema)) query: TemporalRunQueryDto,
    @CurrentAuth() auth: AuthContext | null,
  )

Source from the content-addressed store, hash-verified

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({

Callers 5

buildHarResponseFunction · 0.80
closeMethod · 0.80
executionStore.tsFile · 0.80
shipsecWorkflowRunFunction · 0.80

Calls 1

cancelRunMethod · 0.45

Tested by

no test coverage detected