mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +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 {
|
} 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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user