mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 00:37:10 +02:00
fix(editor): Mark execution as stopped even if fetching execution has failed (no-changelog) (#15826)
This commit is contained in:
parent
7f8b943c1a
commit
f755af8d3e
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user