@@ -27,36 +27,23 @@ class LaunchParameters:
27
27
specification : dict [str , Any ]
28
28
# An alternative way to pass variables to the specification.
29
29
# If used it will replace any 'variables' already present in the specification.
30
- specification_variables : dict [str , Any ] | None = None
30
+ variables : dict [str , Any ] | None = None
31
31
# A string. In DM v4 converted to a boolean and set in the
32
32
# instance Pod as a label. Setting this means the Instances
33
33
# that are created will not be automatically removed by the Job operator.
34
34
debug : str | None = None
35
35
# The RunningWorkflow UUID.
36
36
# Required if the Instance is part of a Workflow step.
37
37
running_workflow_id : str | None = None
38
- # The RunningWorkflowStep UUID .
38
+ # The RunningWorkflow's step name .
39
39
# Required if the Instance is part of a Workflow step.
40
- running_workflow_step_id : str | None = None
41
- # A list of prior workflow steps that this step depends upon.
42
- #
43
- # This list gives the InstanceLauncher an opportunity to take the outputs
44
- # of a prior instance and link them to the instance directory for the
45
- # instance to be launched. We need to do this for Workflows because Instances
46
- # run as apart of a Workflow do not automatically have their outputs copied (linked)
47
- # to the Project directory when they complete. As an example, a step that relies
48
- # on the output files from two prior steps will provide the following list: -
49
- #
50
- # ["r-workflow-step-a04d", "r-workflow-step-d904"]
51
- running_workflow_step_prior_steps : list [str ] | None = None
52
- # Workflow step Job inputs (for this step Instance). These Workflow Inputs (files)
53
- # are a list of Job input variable names for file variables where the
54
- # file is expected to be present in the Project directory. It is simply a list of
55
- # Job variable names. The launcher is expected to find the 'value' of these
56
- # variables and then move the file to the instance directory.
57
- #
58
- # ["inputFile"]
59
- running_workflow_step_inputs : list [str ] | None = None
40
+ step_name : str | None = None
41
+ # The step replication number.
42
+ # If only one instance of the step is expected to run
43
+ # this value can be left at 0 (zero). If this step's launch
44
+ # is expected to be executed more than once the value should be
45
+ # non-zero (and unique for this workflow run).
46
+ step_replication_number : int = 0
60
47
# The application ID (a custom resource name)
61
48
# used to identify the 'type' of Instance to create.
62
49
# For DM Jobs this will be 'datamanagerjobs.squonk.it'
@@ -75,6 +62,9 @@ class LaunchResult:
75
62
# The following optional properties
76
63
# may not be present if there's a launch error.
77
64
#
65
+ # A running workflow step UUID
66
+ # (if the step is part of a running workflow)
67
+ running_workflow_step_id : str | None = None
78
68
# The Instance UUID that was created for you.
79
69
instance_id : str | None = None
80
70
# The Task UUID that is handling the Instance launch
@@ -94,7 +84,6 @@ def launch(
94
84
self ,
95
85
* ,
96
86
launch_parameters : LaunchParameters ,
97
- ** kwargs : str ,
98
87
) -> LaunchResult :
99
88
"""Launch a (Job) Instance"""
100
89
@@ -199,25 +188,6 @@ def set_running_workflow_done(
199
188
"""Set the success value for a RunningWorkflow Record.
200
189
If not successful an error code and message should be provided."""
201
190
202
- @abstractmethod
203
- def create_running_workflow_step (
204
- self ,
205
- * ,
206
- running_workflow_id : str ,
207
- step : str ,
208
- replica : int = 0 ,
209
- prior_running_workflow_step_id : str | None = None ,
210
- ) -> tuple [dict [str , Any ], int ]:
211
- """Create a RunningWorkflowStep Record (from a RunningWorkflow).
212
- If this is a replica (concurrent execution) of a step the replica
213
- value must be set to a value greater than 0. The replica is unique
214
- for a given step and is used to distinguish between running workflow steps
215
- generated from the same step name."""
216
- # Should return:
217
- # {
218
- # "id": "r-workflow-step-00000000-0000-0000-0000-000000000001",
219
- # }
220
-
221
191
@abstractmethod
222
192
def get_running_workflow_step (
223
193
self , * , running_workflow_step_id : str
@@ -292,17 +262,6 @@ def get_running_workflow_step_by_name(
292
262
# "id": "r-workflow-step-00000000-0000-0000-0000-000000000001",
293
263
# },
294
264
295
- @abstractmethod
296
- def set_running_workflow_step_variables (
297
- self ,
298
- * ,
299
- running_workflow_step_id : str ,
300
- variables : dict [str , Any ],
301
- ) -> None :
302
- """Set the variables used prior to decoding the step command for each step.
303
- This can be used to understand step failures but will also be vital
304
- when adding variables values to subsequent steps from prior step values."""
305
-
306
265
@abstractmethod
307
266
def set_running_workflow_step_done (
308
267
self ,
0 commit comments