Comments (8)
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.
@Canas Thank you so much! You're a lifesaver.
from data-science-on-gcp.
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.
from data-science-on-gcp.
Just did the pull request with the same timeout parameter as my previous post :)
from data-science-on-gcp.
thanks, Canas. i don't see any pull request though
from data-science-on-gcp.
Sorry I was having issues with Google CLA, now it should be ready. Thanks!
from data-science-on-gcp.
Fixed by Canas in #30
from data-science-on-gcp.
Related Issues (20)
- download.sh does not download the data HOT 1
- There is no Table Explorer in BQ HOT 1
- chapter 04: df07.py - Unable to open file: gs://BUCKETNAME/flights/staging/ch04timecorr.1656567385.996847/pipeline.pb. HOT 3
- hello
- problem extracting bigquery table data to cloud storage HOT 2
- Crash during Deployment of model on Vertex AI HOT 14
- Chapter 6 create_cluster.sh script problem
- Chapter 4: tz_correct KeyError: "CRS_ARR_TIME [while running 'flights:tzcorr-ptransform-157']" HOT 2
- I cannot make the table definition for the federated source in chapter 4 HOT 2
- AttributeError: tzinfo HOT 2
- README improvement for chapters 2 and 3 regarding upload to BQ HOT 4
- Ch.4 - Time Correction - input/output error when running df02.py HOT 3
- Ch7 - can't increase quota of Dataproc cluster; workaround not working HOT 1
- Ch.9 - can't export data to GCS - wrong project number? HOT 4
- Ch9 - training deep neural network - how to attach GPU? HOT 7
- Ch10 - can't run model.py - error with hypertune HOT 11
- Ch11 - error when running AutoML on full dataset HOT 1
- CH10 code to set TensorFlow level is broken now that there are 2 digits second level of current TensorFlow HOT 2
- Chapter 2 - ingest_flights.py - Access denied to gs file on bqload function HOT 4
- Ch9 - Call predictions using Flask webserver HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-science-on-gcp.