Skip to content

Commit f46134d

Browse files
authored
[FIX] Increase gunicorn worker timeout (#830)
1 parent 1d969e9 commit f46134d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap_gunicorn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
from os import path
55

66
current_dir = path.dirname(path.abspath(__file__))
7+
TIMEOUT = 120 # In seconds
78

89
# Arguments to start gunicorn
910
args = [
1011
"gunicorn", "-w", "4", "--daemon", "--pid", "gunicorn.pid", "-b", "unix:sampleplatform.sock", "-m", "007",
11-
"-g", "www-data", "-u", "www-data", f"--chdir={current_dir}", "--log-level", "debug",
12+
"-g", "www-data", "-u", "www-data", f"--chdir={current_dir}", "--log-level", "debug", "--timeout", f"{TIMEOUT}",
1213
"--access-logfile", f"{current_dir}/logs/access.log", "--capture-output",
1314
"--log-file", f"{current_dir}/logs/error.log", "run:app"
1415
]

0 commit comments

Comments
 (0)