@@ -109,8 +109,8 @@ def _handle_workflow_start_message(self, r_wfid: str) -> None:
109
109
_LOGGER .debug (
110
110
"API.get_running_workflow(%s) returned: -\n %s" , r_wfid , str (rwf_response )
111
111
)
112
- assert "user_id " in rwf_response
113
- launching_user_name : str = rwf_response ["user_id " ]
112
+ assert "running_user " in rwf_response
113
+ launching_user_name : str = rwf_response ["running_user " ]
114
114
# Now get the workflow definition (to get all the steps)
115
115
wfid = rwf_response ["workflow" ]["id" ]
116
116
wf_response , _ = self ._wapi_adapter .get_workflow (workflow_id = wfid )
@@ -155,7 +155,7 @@ def _handle_workflow_start_message(self, r_wfid: str) -> None:
155
155
application_id = DM_JOB_APPLICATION_ID ,
156
156
name = first_step_name ,
157
157
launching_user_name = launching_user_name ,
158
- launching_user_api_token = rwf_response ["user_api_token " ],
158
+ launching_user_api_token = rwf_response ["running_user_api_token " ],
159
159
specification = json .loads (first_step ["specification" ]),
160
160
specification_variables = variables ,
161
161
running_workflow_id = r_wfid ,
@@ -279,8 +279,8 @@ def _handle_pod_message(self, msg: PodMessage) -> None:
279
279
project_id = project_id ,
280
280
application_id = DM_JOB_APPLICATION_ID ,
281
281
name = next_step_name ,
282
- launching_user_name = rwf_response ["user_id " ],
283
- launching_user_api_token = rwf_response ["user_api_token " ],
282
+ launching_user_name = rwf_response ["running_user " ],
283
+ launching_user_api_token = rwf_response ["running_user_api_token " ],
284
284
specification = json .loads (next_step ["specification" ]),
285
285
specification_variables = variables ,
286
286
running_workflow_id = r_wfid ,
0 commit comments