Skip to content

Commit 9e64bff

Browse files
authored
Prevent "[CRITICAL] WORKER TIMEOUT" error message (GoogleCloudPlatform#3229)
1 parent 7bc4783 commit 9e64bff

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

run/hello-broken/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ COPY . .
3434
# Use gunicorn webserver with one worker process and 8 threads.
3535
# For environments with multiple CPU cores, increase the number of workers
3636
# to be equal to the cores available.
37-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
37+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
3838

3939
# [END run_broken_dockerfile]

run/image-processing/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ COPY . ./
4242
# Use gunicorn webserver with one worker process and 8 threads.
4343
# For environments with multiple CPU cores, increase the number of workers
4444
# to be equal to the cores available.
45-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
45+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

run/logging-manual/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ COPY . .
3232
# Use gunicorn webserver with one worker process and 8 threads.
3333
# For environments with multiple CPU cores, increase the number of workers
3434
# to be equal to the cores available.
35-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
35+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

run/pubsub/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ COPY . ./
3434
# Use gunicorn webserver with one worker process and 8 threads.
3535
# For environments with multiple CPU cores, increase the number of workers
3636
# to be equal to the cores available.
37-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
37+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
3838

3939
# [END run_pubsub_dockerfile]

run/system-package/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@ COPY . .
3838
# Use gunicorn webserver with one worker process and 8 threads.
3939
# For environments with multiple CPU cores, increase the number of workers
4040
# to be equal to the cores available.
41-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
42-
41+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

0 commit comments

Comments
 (0)