File tree Expand file tree Collapse file tree
apps/sim/app/api/workflows/[id]/executions/[executionId]/cancel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export async function POST(
6464 logger . info ( 'Execution cancelled via local in-process fallback' , { executionId } )
6565 } else if ( pausedCancelled ) {
6666 logger . info ( 'Paused execution cancelled directly in database' , { executionId } )
67- void setExecutionMeta ( executionId , { status : 'cancelled' , workflowId } )
67+ void setExecutionMeta ( executionId , { status : 'cancelled' , workflowId } ) . catch ( ( ) => { } )
6868 const writer = createExecutionEventWriter ( executionId )
6969 void writer
7070 . write ( {
@@ -75,6 +75,7 @@ export async function POST(
7575 data : { duration : 0 } ,
7676 } )
7777 . then ( ( ) => writer . close ( ) )
78+ . catch ( ( ) => { } )
7879 } else {
7980 logger . warn ( 'Execution cancellation was not durably recorded' , {
8081 executionId,
You can’t perform that action at this time.
0 commit comments