@@ -15,33 +15,49 @@ class LaunchParameters:
1515 The launching user API token is the second element when the request header's
1616 'Authorization' value is split on white-space."""
1717
18- application_id : str
18+ # The Project UUID to launch the instance in
1919 project_id : str
20+ # A symbolic name of the Instance
2021 name : str
22+ # The user name of the person launching the Instance/Workflow
2123 launching_user_name : str
24+ # The API Access token provided by the User
2225 launching_user_api_token : str
26+ # The specification, which can contain 'variables'
2327 specification : dict [str , Any ]
28+ # An alternative way to passing variables to the specification.
29+ # If used it will replace any 'variables' key in the specification.
2430 specification_variables : dict [str , Any ] | None = None
25- debug : bool | None = None
26- callback_url : str | None = None
27- callback_token : str | None = None
28- callback_context : str | None = None
29- generate_callback_token : bool | None = None
31+ # A string. In DM v4 converted to a boolean and set in the
32+ # instance Pod as a label.
33+ debug : str | None = None
34+ # The RunningWorkflow UUID
3035 running_workflow_id : str | None = None
36+ # The RunningWorkflowStep UUID
3137 running_workflow_step_id : str | None = None
38+ # The application ID (a custom resource name)
39+ # used to identify the 'type' of Instance to create.
40+ # For DM Jobs this will be 'datamanagerjobs.squonk.it'
41+ application_id : str = "datamanagerjobs.squonk.it"
3242
3343
3444@dataclass
3545class LaunchResult :
3646 """Results returned from methods in the InstanceLauncher.
3747 Any error returned in this object is a launch error, not a Job error."""
3848
49+ # A numeric non-zero error code if an error occurred
50+ # and an optional message
3951 error_num : int = 0
4052 error_msg : str | None = None
53+ # The Instance UUID that was created for you
4154 instance_id : str | None = None
55+ # The Task UUID that is handling the Instance launch
4256 task_id : str | None = None
43- callback_token : str | None = None
57+ # The rendered command used in the instance
4458 command : str | None = None
59+ # A callback token (unused in Workflows)
60+ callback_token : str | None = None
4561
4662
4763class InstanceLauncher (ABC ):
@@ -51,7 +67,9 @@ class InstanceLauncher(ABC):
5167 @abstractmethod
5268 def launch (
5369 self ,
70+ * ,
5471 launch_parameters : LaunchParameters ,
72+ ** kwargs : str ,
5573 ) -> LaunchResult :
5674 """Launch a (Job) Instance"""
5775
0 commit comments