Coder Social home page Coder Social logo

Comments (8)

Canas avatar Canas commented on May 12, 2024 14

This behavior is caused by gunicorn not by Google. Gunicorn has a 30 second default limit that can be overrided by setting the --timeout argument in app.yaml.

Example with 120 seconds timeout:

gunicorn -b :$PORT ingestapp:app --timeout 120

I was having the same issue with worker timeout error until I did this. Hope it helps!

from data-science-on-gcp.

pdoggi avatar pdoggi commented on May 12, 2024 1

@Canas Thank you so much! You're a lifesaver.

from data-science-on-gcp.

lakshmanok avatar lakshmanok commented on May 12, 2024

Looks like the server was being slow ... if the time to download the file exceeds 10 minutes, it causes deadline exceeded errors in app-engine:

https://cloud.google.com/appengine/articles/deadlineexceedederrors

If you run into this problem in your real-world application, you have a couple of alternatives:
(1) change your architecture to use Cloud Functions. Put all the ingest code in a Cloud Function and launch it off in response to the Cron.
(2) reduce the size of the file being downloaded by increasing the frequency of download. For example, instead of downloading monthly files once a month, download weekly files once a week.

from data-science-on-gcp.

lakshmanok avatar lakshmanok commented on May 12, 2024

from data-science-on-gcp.

Canas avatar Canas commented on May 12, 2024

Just did the pull request with the same timeout parameter as my previous post :)

from data-science-on-gcp.

lakshmanok avatar lakshmanok commented on May 12, 2024

thanks, Canas. i don't see any pull request though

from data-science-on-gcp.

Canas avatar Canas commented on May 12, 2024

Sorry I was having issues with Google CLA, now it should be ready. Thanks!

from data-science-on-gcp.

lakshmanok avatar lakshmanok commented on May 12, 2024

Fixed by Canas in #30

from data-science-on-gcp.

Related Issues (20)

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.