File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -199,25 +199,23 @@ def RunWorkflow(self, **args):
199
199
200
200
try :
201
201
tempdir , body = self .collect_attachments (cr ["uuid" ])
202
+
203
+ workflow_url = body .get ("workflow_url" )
204
+
205
+ project_uuid = body .get ("workflow_engine_parameters" , {}).get ("project_uuid" )
206
+
207
+ threading .Thread (target = self .invoke_cwl_runner , args = (cr ["uuid" ],
208
+ workflow_url ,
209
+ body ["workflow_params" ],
210
+ env ,
211
+ project_uuid ,
212
+ tempdir )).start ()
213
+
202
214
except Exception as e :
203
215
self .log_for_run (cr ["uuid" ], str (e ))
204
216
cr = api .container_requests ().update (uuid = cr ["uuid" ],
205
217
body = {"container_request" :
206
218
{"priority" : 0 }}).execute ()
207
-
208
- return {"run_id" : cr ["uuid" ]}
209
-
210
- workflow_url = body .get ("workflow_url" )
211
-
212
- project_uuid = body .get ("workflow_engine_parameters" , {}).get ("project_uuid" )
213
-
214
- threading .Thread (target = self .invoke_cwl_runner , args = (cr ["uuid" ],
215
- workflow_url ,
216
- body ["workflow_params" ],
217
- env ,
218
- project_uuid ,
219
- tempdir )).start ()
220
-
221
219
return {"run_id" : cr ["uuid" ]}
222
220
223
221
@catch_exceptions
You can’t perform that action at this time.
0 commit comments