Skip to content

Commit

Permalink
Prevent "[CRITICAL] WORKER TIMEOUT" error message (#3229)
Browse files Browse the repository at this point in the history
  • Loading branch information
grayside authored Mar 31, 2020
1 parent 7bc4783 commit 9e64bff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion run/hello-broken/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ COPY . .
# Use gunicorn webserver with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

# [END run_broken_dockerfile]
2 changes: 1 addition & 1 deletion run/image-processing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ COPY . ./
# Use gunicorn webserver with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
2 changes: 1 addition & 1 deletion run/logging-manual/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ COPY . .
# Use gunicorn webserver with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
2 changes: 1 addition & 1 deletion run/pubsub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ COPY . ./
# Use gunicorn webserver with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

# [END run_pubsub_dockerfile]
3 changes: 1 addition & 2 deletions run/system-package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ COPY . .
# Use gunicorn webserver with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app

CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

0 comments on commit 9e64bff

Please sign in to comment.