Reputation: 327
I have gone through all the documentation provided for the running Django Application on app engine. I have a Django Application where I am using Vision and Storage clients and my app name is pvd. I have been constantly getting below errors in error logs.
A [2017-03-30 22:08:07 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:7)
A [2017-03-30 22:08:07 +0000] [7] [INFO] Worker exiting (pid: 7)
A [2017-03-30 22:08:07 +0000] [9] [INFO] Booting worker with pid: 9
A [2017-03-30 22:12:35 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:9)
A [2017-03-30 22:12:35 +0000] [9] [INFO] Worker exiting (pid: 9)
A [2017-03-30 22:12:36 +0000] [11] [INFO] Booting worker with pid: 11
A [2017-03-30 22:13:03 +0000] [1] [INFO] Handling signal: term
A [2017-03-30 22:13:03 +0000] [7] [INFO] Worker exiting (pid: 7)
A [2017-03-30 22:13:03 +0000] [1] [INFO] Shutting down: Master*
Below is my app.yaml
runtime: python
env: flex
entrypoint: gunicorn -b :$PORT pythonvision.wsgi
runtime_config:
python_version: 3
Below is my requirement.txt
Django==1.10.6
google-cloud-storage==0.23.1
google-cloud-vision==0.23.1
gunicorn==19.7.0
For deploying I am using:
gcloud app deploy
What am I doing wrong?
Upvotes: 2
Views: 1639
Reputation: 18464
Update gunicorn
command with a timeout
that suits your needs.
E.g (60 seconds):
entrypoint: gunicorn --timeout 60 -b :$PORT pythonvision.wsgi
I believe the default is 30 seconds.
Upvotes: 0