mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
chore(core): Do not overwrite execution progress status in canceled workflow execution (#17332)
This commit is contained in:
@@ -61,7 +61,11 @@ export async function saveExecutionProgress(
|
|||||||
// Set last executed node so that it may resume on failure
|
// Set last executed node so that it may resume on failure
|
||||||
fullExecutionData.data.resultData.lastNodeExecuted = nodeName;
|
fullExecutionData.data.resultData.lastNodeExecuted = nodeName;
|
||||||
|
|
||||||
|
// If the execution was canceled, we do not change the status
|
||||||
|
// to running, because it is already canceled.
|
||||||
|
if (fullExecutionData.status !== 'canceled') {
|
||||||
fullExecutionData.status = 'running';
|
fullExecutionData.status = 'running';
|
||||||
|
}
|
||||||
|
|
||||||
await executionRepository.updateExistingExecution(executionId, fullExecutionData);
|
await executionRepository.updateExistingExecution(executionId, fullExecutionData);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user