mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +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
|
||||
fullExecutionData.data.resultData.lastNodeExecuted = nodeName;
|
||||
|
||||
fullExecutionData.status = 'running';
|
||||
// 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';
|
||||
}
|
||||
|
||||
await executionRepository.updateExistingExecution(executionId, fullExecutionData);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user