Skip to content

Commit f949ccd

Browse files
committed
add a real error message when time out is effective
1 parent 097758b commit f949ccd

File tree

1 file changed

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

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,14 @@ async def _handle_computational_retrieval_error(
406406
elapsed_time
407407
> self.settings.COMPUTATIONAL_BACKEND_MAX_WAITING_FOR_RETRIEVING_RESULTS
408408
):
409+
_logger.error(
410+
**create_troubleshooting_log_kwargs(
411+
f"Task {task.job_id} failed because results could not be retrieved after {elapsed_time}",
412+
error=result,
413+
error_context=log_error_context,
414+
tip="Please try again later or contact support if the problem persists.",
415+
)
416+
)
409417
return RunningState.FAILED, SimcorePlatformStatus.BAD, task_errors, True
410418
# state is kept as STARTED so it will be retried
411419
return RunningState.STARTED, SimcorePlatformStatus.BAD, task_errors, False

0 commit comments

Comments
 (0)