Skip to content

Commit 079736c

Browse files
author
Alan Christie
committed
dev: Fix instance prefix
1 parent 43c516f commit 079736c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workflow/workflow_engine.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,9 @@ def _prepare_step(
627627
assert "instance_id" in prior_step
628628
p_i_id: str = prior_step["instance_id"]
629629
p_i_dir: str = f"{self._instance_id_dir_prefix}{p_i_id}"
630-
# Get prior step Job (tro look for inputs)
630+
# Get prior step Job (to look for its outputs that are our inputs)
631631
# (if we're not a combiner)
632-
p_job_inputs: dict[str, Any] = {}
632+
p_job_outputs: dict[str, Any] = {}
633633
if not we_are_a_combiner:
634634
p_step_spec: dict[str, Any] = get_step_specification(
635635
wf, prior_step_name
@@ -642,14 +642,14 @@ def _prepare_step(
642642
)
643643
_LOGGER.info("API.get_job() got %s\n", str(p_job))
644644
assert p_job
645-
p_job_inputs = job_definition_decoder.get_inputs(p_job)
645+
p_job_outputs = job_definition_decoder.get_outputs(p_job)
646646
# Copy "in" value to "out"...
647647
# (prefixing inputs with instance directory if required)
648648
assert "variables" in prior_step
649649
for connector in connections:
650650
assert connector.in_ in prior_step["variables"]
651651
value: str = prior_step["variables"][connector.in_]
652-
if not we_are_a_combiner and connector.in_ in p_job_inputs:
652+
if not we_are_a_combiner and connector.in_ in p_job_outputs:
653653
# Prefix with prior-step's instance directory
654654
value = f"{p_i_dir}/{value}"
655655
prime_variables[connector.out] = value
@@ -769,7 +769,7 @@ def _launch(
769769
rwf_id: str = rwf["id"]
770770
project_id = rwf["project"]["id"]
771771

772-
_LOGGER.info("SPR.variable=%s", step_preparation_response.variables)
772+
_LOGGER.info("SPR.variables=%s", step_preparation_response.variables)
773773
_LOGGER.info(
774774
"SPR.replica_variable=%s", step_preparation_response.replica_variable
775775
)

0 commit comments

Comments
 (0)