admin管理员组文章数量:1353731
I have a client app, that downloads potentially big files from S3. I want to give the user the option to cancel that download, without stopping/killing the whole app. Doing some research, that seems to be an suprisingly different task:
boto3
does not support canceling S3 downloads :(.- I could start a process (using Python multiprocessing) - and kill it to cancel the download. But I fear that would probably leave large chunks already in memory but not saved to the file "lost".
- I could use some http library and "manual" download the file. If that library supports canceling, that could work. But I also did not find another http library, that supports canceling get requests in progress.
So my questions, aimed at archiving cancelable downloads from S3.
- Am I right, that running the download in a separate process and killing it could drop larger chunks already download (or other problems)?
- Did I miss a python http library that supports canceling?
- Is there another way, to cancel S3 downloads in Python that I may have missed?
本文标签: amazon web servicescancel S3 Download in pythonStack Overflow
版权声明:本文标题:amazon web services - cancel S3 Download in python - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743931769a2563975.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论