Skip to content

Commit 179135a

Browse files
author
Alan Christie
committed
docs: Doc tweak
1 parent 8dd9308 commit 179135a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

workflow/workflow_engine.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,24 @@ def _prepare_step(
510510
for connector in connections:
511511
assert connector.in_ in prior_step["variables"]
512512
if connector.out == combiner_input_variable:
513+
# Each instance may have a different value
513514
input_source_list.append(
514515
prior_step["variables"][connector.in_]
515516
)
516-
else:
517+
elif replica == 0:
518+
# Only the first instance value are of interest,
519+
# the rest wil be the same - only one variable
520+
# is a list of different values.
517521
variables[connector.out] = prior_step["variables"][
518522
connector.in_
519523
]
524+
# Now we have accumulated the prior steps values (files)
525+
# set the combiner's corresponding input variable...
520526
variables[combiner_input_variable] = input_source_list
521527
else:
528+
# Not a preior step for a combiner,
529+
# or not a step being combined in a combiner.
530+
#
522531
# Retrieve the prior "running" step
523532
# in order to get the variables that were set there...
524533
prior_step, _ = self._wapi_adapter.get_running_workflow_step_by_name(

0 commit comments

Comments
 (0)