Skip to content

Commit b58912d

Browse files
committed
reverted changes
1 parent db7bff5 commit b58912d

File tree

1 file changed

+0
-12
lines changed
  • services/director-v2/src/simcore_service_director_v2/modules/comp_scheduler

1 file changed

+0
-12
lines changed

services/director-v2/src/simcore_service_director_v2/modules/comp_scheduler/_scheduler_base.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -326,18 +326,6 @@ async def _send_running_tasks_heartbeat(
326326
def _need_heartbeat(task: CompTaskAtDB) -> bool:
327327
if task.state not in RUNNING_STATES:
328328
return False
329-
if task.start is None:
330-
_logger.warning(
331-
"Task %s is in state %s but has no start time. TIP: this can happen if the task went from PENDING to UNKNOWN to SUCCESS and back to STARTED due to not responding when retrieving the results. Skipping heartbeat as this cannot be computed. (%s, %s, %s, %s, %s)",
332-
task.job_id,
333-
task.state,
334-
user_id,
335-
project_id,
336-
iteration,
337-
run_id,
338-
task.node_id,
339-
)
340-
return False
341329

342330
if task.last_heartbeat is None:
343331
assert task.start # nosec

0 commit comments

Comments
 (0)