File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
services/director-v2/src/simcore_service_director_v2/modules Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1616from copy import deepcopy
1717from dataclasses import dataclass , field
1818from http .client import HTTPException
19- from typing import Any , cast
19+ from typing import Any , Final , cast
2020
2121import dask .typing
2222import distributed
9999}
100100
101101
102- _DASK_DEFAULT_TIMEOUT_S = 1
102+ _DASK_DEFAULT_TIMEOUT_S : Final [ int ] = 1
103103
104104
105105_UserCallbackInSepThread = Callable [[], None ]
@@ -458,9 +458,9 @@ def _get_pipeline_statuses(
458458 )
459459 if dask_status == "erred" :
460460 # find out if this was a cancellation
461- exception = await distributed .Future (job_id ). exception (
462- timeout = _DASK_DEFAULT_TIMEOUT_S
463- )
461+ exception = await distributed .Future (
462+ job_id , client = self . backend . client
463+ ). exception ( timeout = _DASK_DEFAULT_TIMEOUT_S )
464464 assert isinstance (exception , Exception ) # nosec
465465
466466 if isinstance (exception , TaskCancelledError ):
You can’t perform that action at this time.
0 commit comments