Skip to content

Commit 3c7555d

Browse files
committed
fixed issue
1 parent 03108ff commit 3c7555d

File tree

1 file changed

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

1 file changed

+11
-0
lines changed

services/director-v2/src/simcore_service_director_v2/modules/dask_client.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,17 @@ async def _get_task_state(job_id: str) -> RunningState:
487487
),
488488
)
489489
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
490501

491502
return parsed_event.state
492503

0 commit comments

Comments
 (0)