Skip to content

Commit

Permalink
fix(core): makes Subflow labels dynamic (again)
Browse files Browse the repository at this point in the history
Fixes #6203
  • Loading branch information
loicmathieu committed Nov 29, 2024
1 parent b55ad0a commit 2887d7a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import java.time.ZonedDateTime;
import java.util.*;

import static io.kestra.core.utils.Rethrow.throwConsumer;

@Slf4j
public final class ExecutableUtils {

Expand Down Expand Up @@ -88,7 +90,7 @@ public static <T extends Task & ExecutableTask<?>> SubflowExecution<?> subflowEx

List<Label> newLabels = inheritLabels ? new ArrayList<>(currentExecution.getLabels()) : new ArrayList<>(systemLabels(currentExecution));
if (labels != null) {
newLabels.addAll(labels);
labels.forEach(throwConsumer(label -> newLabels.add(new Label(runContext.render(label.key()), runContext.render(label.value())))));
}

Map<String, Object> variables = ImmutableMap.of(
Expand Down

0 comments on commit 2887d7a

Please sign in to comment.