mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Mark execution as stopped even if fetching execution has failed (no-changelog) (#15826)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user