Skip to content

Commit 298b387

Browse files
author
Andrei Neagu
committed
sonar
1 parent 5b9f926 commit 298b387

File tree

1 file changed

+2
-2
lines changed
  • services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler

1 file changed

+2
-2
lines changed

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async def _get_steps_statuses(
9898
return dict(result)
9999

100100

101-
async def _is_operation_in_progress_status(
101+
def _is_operation_in_progress_status(
102102
steps_statuses: dict[StepName, StepStatus],
103103
) -> bool:
104104
return any(status in _IN_PROGRESS_STATUSES for status in steps_statuses.values())
@@ -376,7 +376,7 @@ async def _on_schedule_event(self, schedule_id: ScheduleId) -> None:
376376
_logger.debug("DETECTED: steps_statuses=%s", steps_statuses)
377377

378378
# wait for all steps to finish before continuing
379-
if await _is_operation_in_progress_status(steps_statuses):
379+
if _is_operation_in_progress_status(steps_statuses):
380380
_logger.debug(
381381
"Operation '%s' has not finished: steps_statuses='%s'",
382382
operation_name,

0 commit comments

Comments
 (0)