chore(core): Do not overwrite execution progress status in canceled workflow execution (#17332)

This commit is contained in:
Andreas Fitzek
2025-07-16 09:56:22 +02:00
committed by GitHub
parent e1805fb14f
commit 4bba13ccb8

View File

@@ -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) {