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