File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
services/api-server/src/simcore_service_api_server/api/routes Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -222,8 +222,7 @@ async def function_job_status(
222222 job_status = await studies_jobs .inspect_study_job (
223223 study_id = function .project_id ,
224224 job_id = function_job .project_job_id ,
225- user_id = user_id ,
226- director2_api = director2_api ,
225+ job_service = job_service ,
227226 )
228227 elif (function .function_class == FunctionClass .SOLVER ) and (
229228 function_job .function_class == FunctionClass .SOLVER
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ async def start_study_job(
215215 user_id : Annotated [PositiveInt , Depends (get_current_user_id )],
216216 webserver_api : Annotated [AuthSession , Depends (get_webserver_session )],
217217 director2_api : Annotated [DirectorV2Api , Depends (get_api_client (DirectorV2Api ))],
218+ job_service : Annotated [JobService , Depends (get_job_service )],
218219 cluster_id : Annotated [ # pylint: disable=unused-argument # noqa: ARG001
219220 ClusterID | None ,
220221 Query (
@@ -244,17 +245,15 @@ async def start_study_job(
244245 job_status : JobStatus = await inspect_study_job (
245246 study_id = study_id ,
246247 job_id = job_id ,
247- user_id = user_id ,
248- director2_api = director2_api ,
248+ job_service = job_service ,
249249 )
250250 return JSONResponse (
251251 content = jsonable_encoder (job_status ), status_code = status .HTTP_200_OK
252252 )
253253 return await inspect_study_job (
254254 study_id = study_id ,
255255 job_id = job_id ,
256- user_id = user_id ,
257- director2_api = director2_api ,
256+ job_service = job_service ,
258257 )
259258
260259
You can’t perform that action at this time.
0 commit comments