@@ -19,16 +19,17 @@ class LaunchParameters:
19
19
project_id : str
20
20
# A symbolic name of the Instance
21
21
name : str
22
- # The user name of the person launching the Instance (Workflow step)
22
+ # The user name of the person launching the Instance
23
23
launching_user_name : str
24
24
# The API Access token provided by the User
25
25
launching_user_api_token : str
26
26
# The specification, which can contain 'variables'
27
27
specification : dict [str , Any ]
28
- # An alternative way to pass variables to the specification.
29
- # If used it will replace any 'variables' already present in the specification.
28
+ # The 'preferred' way to provide variables for the Job's specification.
29
+ # If used it will replace any 'variables' already present in the specification
30
+ # (values are no merged).
30
31
variables : dict [str , Any ] | None = None
31
- # A string. In DM v4 converted to a boolean and set in the
32
+ # A string. In DM v4, if any value is set a corresponding boolean is set in the
32
33
# instance Pod as a label. Setting this means the Instances
33
34
# that are created will not be automatically removed by the Job operator.
34
35
debug : str | None = None
@@ -39,19 +40,24 @@ class LaunchParameters:
39
40
# Required if the Instance is part of a Workflow step.
40
41
step_name : str | None = None
41
42
# 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
- # 1..'N'.
43
+ # A numeric vale expected to be in the range 0 to total_number_of_replicas - 1.
44
+ # If a step is laucnhed 5 times the values used when laucnhing each instance
45
+ # must be 0, 1, 2, 3, and 4.
46
46
step_replication_number : int = 0
47
47
# The total number of replicas of this instance that are expected to be laucnhed.
48
48
# This cannot be less than 1 and must be grater than any value of
49
- # 'step_replication_number' that will be used fo rthe same step.
49
+ # 'step_replication_number' that will be used for the same step.
50
50
total_number_of_replicas : int = 1
51
- # A set of dependent (prior step) instances that are expected to be hard-linked
52
- # into the instance directory the launcher will create. These are required
53
- # so that the step can access the dependent step's files.
54
- dependent_instances : set [str ] | None = None
51
+ # A set of dependent (prior step) instance directroies that are expected to be
52
+ # hard-linked into the instance directory the launcher will create.
53
+ # These are required so that the step can access the dependent step's files.
54
+ # It is a set of instance UUIDs.
55
+ step_dependent_instances : set [str ] | None = None
56
+ # A set of dependent project files that are expected to be hard-linked
57
+ # into the instance directory the launcher will create.
58
+ # These are required so that the step can access project files.
59
+ # It is a set project-relative filenames (or directroies).
60
+ step_project_inputs : set [str ] | None = None
55
61
# The application ID (a custom resource name)
56
62
# used to identify the 'type' of Instance to create.
57
63
# For DM Jobs this will be 'datamanagerjobs.squonk.it'
0 commit comments