Skip to content

Commit 769b026

Browse files
Merge pull request #28 from InformaticsMatters/sc-3475
fix: Change Launch Parameters for prior steps
2 parents 7d18648 + afd94c0 commit 769b026

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

workflow/workflow_abc.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,30 +38,17 @@ class LaunchParameters:
3838
# The RunningWorkflowStep UUID.
3939
# Required if the Instance is part of a Workflow step.
4040
running_workflow_step_id: str | None = None
41-
# A map of prior workflow steps and files to copy (link) into the step.
42-
# Used by the Workflow Engine when the instance to be launched depends on the
43-
# execution of a prior instance (or instances). The map is indexed by prior workflow
44-
# step ID and is a list of tuples that consist of two values - a prior workflow
45-
# (instance-relative) file name, and the name of that file when copied (linked)
46-
# into the step to be executed.
41+
# A list of prior workflow steps that this step depends upon.
4742
#
48-
# This map gives the InstanceLauncher an opportunity to take the outputs
43+
# This list gives the InstanceLauncher an opportunity to take the outputs
4944
# of a prior instance and link them to the instance directory for the
5045
# instance to be launched. We need to do this for Workflows because Instances
5146
# run as apart of a Workflow do not automatically have their outputs copied (linked)
5247
# to the Project directory when they complete. As an example, a step that relies
53-
# on the output files 'x.sdf' and 'y.sdf' from step 'a04d', and expects them to be
54-
# called 'a.sdf' and 'b.sdf' in its own instance directory
55-
# will provide the following map: -
48+
# on the output files from two prior steps will provide the following list: -
5649
#
57-
# {"r-workflow-step-a04d": [("x.sdf", "a.sdf"), ("y.sdf", "b.sdf")]}
58-
#
59-
# Each source file must be linked to a unique destination file -
60-
# you cannot map the input examples shown above ()'x.sdf' and 'y.sdf') to the
61-
# same file (i.e. 'a.sdf').
62-
running_workflow_step_prior_step_output_map: (
63-
dict[str, list[tuple[str, str]]] | None
64-
) = None
50+
# ["r-workflow-step-a04d", "r-workflow-step-d904"]
51+
running_workflow_step_prior_steps: list[str] | None = None
6552
# Workflow inputs (for this step Instance). These Workflow Inputs (files) are
6653
# expected to be present in the Project directory. It is simply a list of files
6754
# with the ability to rename them. For example, if the step requires "a.sdf"

0 commit comments

Comments
 (0)