I'm using boto3 to download files from an s3 bucket & I need to support canceling an active file transfer in my client UI - but I can't find how to do it.
There is a progress callback that I can use for transfer status, but I can not cancel the transfer from there.
I did find that boto3's s3transfer.TransferManager object has a .shutdown() member, but it is buggy (.shutdown() passes the wrong params to ._shutdown() a few lines below it) & crashes.
Is there another way to safely cancel an active file_download?
from How can I cancel an active boto3 s3 file_download?
No comments:
Post a Comment