Skip to content

Commit 2fc3494

Browse files
committed
@GitHK clarify if-statement
1 parent ce8f32d commit 2fc3494

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/api-server/src/simcore_service_api_server/_service_function_jobs_task_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ async def list_function_jobs_with_status(
128128
)
129129

130130
for function_job_wso in function_jobs_list_ws:
131-
if (
131+
if function_job_wso.outputs is None or (
132132
function_job_wso.status.status
133133
not in (
134134
RunningState.SUCCESS,
135135
RunningState.FAILED,
136136
)
137-
) or function_job_wso.outputs is None:
137+
):
138138
function_job_wso.status = await self.inspect_function_job(
139139
function=await self._function_service.get_function(
140140
function_id=function_job_wso.function_uid,

0 commit comments

Comments
 (0)