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 145d125 commit 3f2afc7Copy full SHA for 3f2afc7
1 file changed
src/dstack/_internal/server/background/pipeline_tasks/base.py
@@ -124,8 +124,13 @@ async def drain(self):
124
raise PipelineError("Cannot drain running pipeline. Call `shutdown()` first.")
125
results = await asyncio.gather(*self._tasks, return_exceptions=True)
126
for task, result in zip(self._tasks, results):
127
- if isinstance(result, BaseException) and not isinstance(
128
- result, asyncio.CancelledError
+ if (
+ isinstance(result, BaseException)
129
+ and not isinstance(result, asyncio.CancelledError)
130
+ and not isinstance(
131
+ result,
132
+ asyncio.TimeoutError, # At least on Python 3.9 a task may raise TimeoutError from CancelledError.
133
+ )
134
):
135
logger.error(
136
"Unexpected exception when draining pipeline task %r",
0 commit comments