File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
services/director-v2/src/simcore_service_director_v2/modules/comp_scheduler Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 7676
7777_Previous = CompTaskAtDB
7878_Current = CompTaskAtDB
79- _MAX_WAITING_FOR_CLUSTER_TIMEOUT_IN_MIN : Final [int ] = 10
79+ _MAX_WAITING_FOR_CLUSTER_TIMEOUT : Final [datetime .timedelta ] = datetime .timedelta (
80+ minutes = 10
81+ )
82+ _MAX_WAITING_TIME_FOR_UNKNOWN_TASKS : Final [datetime .timedelta ] = datetime .timedelta (
83+ seconds = 30
84+ )
8085
8186
8287def _auto_schedule_callback (
@@ -117,11 +122,6 @@ class SortedTasks:
117122 potentially_lost : list [CompTaskAtDB ]
118123
119124
120- _MAX_WAITING_TIME_FOR_UNKNOWN_TASKS : Final [datetime .timedelta ] = datetime .timedelta (
121- seconds = 30
122- )
123-
124-
125125async def _triage_changed_tasks (
126126 changed_tasks : list [tuple [_Previous , _Current ]],
127127) -> SortedTasks :
@@ -920,7 +920,7 @@ async def _timeout_if_waiting_for_cluster_too_long(
920920
921921 if (
922922 arrow .utcnow ().datetime - latest_modified_of_all_tasks
923- ) > datetime . timedelta ( minutes = _MAX_WAITING_FOR_CLUSTER_TIMEOUT_IN_MIN ) :
923+ ) > _MAX_WAITING_FOR_CLUSTER_TIMEOUT :
924924 await CompTasksRepository .instance (
925925 self .db_engine
926926 ).update_project_tasks_state (
You can’t perform that action at this time.
0 commit comments