We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03108ff commit 3c7555dCopy full SHA for 3c7555d
services/director-v2/src/simcore_service_director_v2/modules/dask_client.py
@@ -487,6 +487,17 @@ async def _get_task_state(job_id: str) -> RunningState:
487
),
488
)
489
return RunningState.UNKNOWN
490
+ except KeyError as exc:
491
+ # the task does not exist
492
+ _logger.warning(
493
+ **create_troubleshootting_log_kwargs(
494
+ f"Task {job_id} not found. State is UNKNOWN.",
495
+ error=exc,
496
+ error_context=log_error_context,
497
+ tip="If the task is supposed to exist, the dask-schdeler has probably restarted. Check its status.",
498
+ ),
499
+ )
500
+ return RunningState.UNKNOWN
501
502
return parsed_event.state
503
0 commit comments