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 ]
@@ -451,9 +451,9 @@ def _get_pipeline_statuses(
451451 )
452452 if dask_status == "erred" :
453453 # find out if this was a cancellation
454- exception = await distributed .Future (job_id ). exception (
455- timeout = _DASK_DEFAULT_TIMEOUT_S
456- )
454+ exception = await distributed .Future (
455+ job_id , client = self . backend . client
456+ ). exception ( timeout = _DASK_DEFAULT_TIMEOUT_S )
457457 assert isinstance (exception , Exception ) # nosec
458458
459459 if isinstance (exception , TaskCancelledError ):
You can’t perform that action at this time.
0 commit comments