let cancel propagate
This commit is contained in:
parent
25050fdeeb
commit
832be0758b
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ class BlobDownloader:
|
||||||
await asyncio.wait(tasks, loop=self.loop, return_when='FIRST_COMPLETED')
|
await asyncio.wait(tasks, loop=self.loop, return_when='FIRST_COMPLETED')
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
drain_tasks(tasks)
|
drain_tasks(tasks)
|
||||||
|
raise
|
||||||
|
|
||||||
async def download_blob(self, blob_hash: str, length: typing.Optional[int] = None) -> 'BlobFile':
|
async def download_blob(self, blob_hash: str, length: typing.Optional[int] = None) -> 'BlobFile':
|
||||||
blob = self.blob_manager.get_blob(blob_hash, length)
|
blob = self.blob_manager.get_blob(blob_hash, length)
|
||||||
|
|
Loading…
Reference in a new issue