Skip to content

Commit ec305a8

Browse files
committed
Fixed issue where stacked workflow step where not using run label and sizing
1 parent 28429f8 commit ec305a8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

scenariorun/src/main/kotlin/com/cosmotech/scenariorun/ContainerFactory.kt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,28 @@ private fun mergeSolutionContainer(
14901490

14911491
envVars?.put(CONTAINER_MODE_VAR, modes)
14921492

1493+
// Node label and sizing is the first none basic node label
1494+
val nodeLabel =
1495+
if (stackedContainer.nodeLabel == NODE_LABEL_DEFAULT &&
1496+
container.nodeLabel != NODE_LABEL_DEFAULT) {
1497+
container.nodeLabel
1498+
} else {
1499+
stackedContainer.nodeLabel
1500+
}
1501+
1502+
val runSizing =
1503+
if (stackedContainer.nodeLabel == NODE_LABEL_DEFAULT &&
1504+
container.nodeLabel != NODE_LABEL_DEFAULT) {
1505+
container.runSizing
1506+
} else {
1507+
stackedContainer.runSizing
1508+
}
1509+
14931510
return stackedContainer.copy(
14941511
name = MULTIPLE_STEPS_NAME + stackedIndex.toString(),
14951512
envVars = envVars,
1513+
nodeLabel = nodeLabel,
1514+
runSizing = runSizing,
14961515
)
14971516
}
14981517

0 commit comments

Comments
 (0)