From 15efeaa9c90ad6c2c771af5cbcbcccd1322d3fc1 Mon Sep 17 00:00:00 2001 From: Anoop Panicker Date: Wed, 10 Aug 2022 13:25:51 -0700 Subject: [PATCH] refresh task definitions when latest is requested during restart --- .../com/netflix/conductor/core/execution/WorkflowExecutor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/netflix/conductor/core/execution/WorkflowExecutor.java b/core/src/main/java/com/netflix/conductor/core/execution/WorkflowExecutor.java index 06d884636a..27508a3a56 100644 --- a/core/src/main/java/com/netflix/conductor/core/execution/WorkflowExecutor.java +++ b/core/src/main/java/com/netflix/conductor/core/execution/WorkflowExecutor.java @@ -514,6 +514,7 @@ public void restart(String workflowId, boolean useLatestDefinitions) { "Unable to find latest definition for %s", workflowId)); workflow.setWorkflowDefinition(workflowDef); + workflowDef = metadataMapperService.populateTaskDefinitions(workflowDef); } else { workflowDef = Optional.ofNullable(workflow.getWorkflowDefinition())