fix(editor): Mark execution as stopped even if fetching execution has failed (no-changelog) (#15826)

This commit is contained in:
Alex Grozav
2025-05-30 12:48:36 +02:00
committed by GitHub
parent 7f8b943c1a
commit f755af8d3e

View File

@@ -498,7 +498,7 @@ export function useRunWorkflow(useRunWorkflowOpts: { router: ReturnType<typeof u
} }
} finally { } finally {
// Wait for websocket event to update the execution status to 'canceled' // Wait for websocket event to update the execution status to 'canceled'
await retry( const markedAsStopped = await retry(
async () => { async () => {
if (workflowsStore.workflowExecutionData?.status !== 'running') { if (workflowsStore.workflowExecutionData?.status !== 'running') {
workflowsStore.markExecutionAsStopped(); workflowsStore.markExecutionAsStopped();
@@ -508,8 +508,12 @@ export function useRunWorkflow(useRunWorkflowOpts: { router: ReturnType<typeof u
return false; return false;
}, },
250, 250,
10, 20,
); );
if (!markedAsStopped) {
workflowsStore.markExecutionAsStopped();
}
} }
} }