File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
services/director-v2/src/simcore_service_director_v2/modules Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -446,11 +446,14 @@ async def _get_task_state(job_id: str) -> RunningState:
446446 if parsed_event .state == RunningState .FAILED :
447447 try :
448448 # find out if this was a cancellation
449- var = distributed .Variable (job_id , client = self .backend .client )
450- future : distributed .Future = await var .get (
449+ task_future : distributed .Future = (
450+ await dask_utils .wrap_client_async_routine (
451+ self .backend .client .get_dataset (name = job_id )
452+ )
453+ )
454+ exception = await task_future .exception (
451455 timeout = _DASK_DEFAULT_TIMEOUT_S
452456 )
453- exception = await future .exception (timeout = _DASK_DEFAULT_TIMEOUT_S )
454457 assert isinstance (exception , Exception ) # nosec
455458
456459 if isinstance (exception , TaskCancelledError ):
You can’t perform that action at this time.
0 commit comments