From 4bba13ccb84bb8c1217ffb3ead02beedb1dc2638 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 16 Jul 2025 09:56:22 +0200 Subject: [PATCH] chore(core): Do not overwrite execution progress status in canceled workflow execution (#17332) --- .../cli/src/execution-lifecycle/save-execution-progress.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/execution-lifecycle/save-execution-progress.ts b/packages/cli/src/execution-lifecycle/save-execution-progress.ts index 5dd898e870..00cd49da70 100644 --- a/packages/cli/src/execution-lifecycle/save-execution-progress.ts +++ b/packages/cli/src/execution-lifecycle/save-execution-progress.ts @@ -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) {