Git Product home page Git Product logo

Comments (3)

avinash-oza avatar avinash-oza commented on September 15, 2024

In this line which is mentioned:

C:\users\palmerf\appdata\local\programs\python\python38\lib\site-packages\glacier_upload\get_job_output.py", line 41, in get_job_output

Can you try changing

file.write(response['body'].read())
while 1:
    data = file_output.read(3.2E7) # 32 MB chunk at a time
    if not data:
        break

    file.write(data)

This should provide a batching like read from the read rather than downloading it all at once. Referred to this example here: https://stackoverflow.com/a/4971681

If this works, I can submit a pull request to fix it.

from glacier-upload.

palmerf avatar palmerf commented on September 15, 2024

This is what worked:

with open(file_name, "xb") as file:
     while 1:
     data = response["body"].read(int(2**25)  # 32 MB chunk at a time
     if not data:
         break

    file.write(data)

This is not ideal - especially if the archive was created from a list of files. In that case "upload.py"
creates a tarfile.

Debugging this program is either time-consuming - a 4 hour wait for a download - or expensive if you add provisioned capacity. I've decided to go with one of the Windows solutions.

from glacier-upload.

tbumi avatar tbumi commented on September 15, 2024

This should be solved in version 2.0 with chunked downloading of archives.

from glacier-upload.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.