File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ server() {
32
32
# Recycle gunicorn workers every n-th request. See http://docs.gunicorn.org/en/stable/settings.html#max-requests for more details.
33
33
MAX_REQUESTS=${MAX_REQUESTS:-1000}
34
34
MAX_REQUESTS_JITTER=${MAX_REQUESTS_JITTER:-100}
35
- exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app --max-requests $MAX_REQUESTS --max-requests-jitter $MAX_REQUESTS_JITTER
35
+ TIMEOUT=${REDASH_GUNICORN_TIMEOUT:-60}
36
+ exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app --max-requests $MAX_REQUESTS --max-requests-jitter $MAX_REQUESTS_JITTER --timeout $TIMEOUT
36
37
}
37
38
38
39
create_db() {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ x-redash-environment: &redash-environment
18
18
REDASH_MAIL_DEFAULT_SENDER: "
[email protected] "
19
19
REDASH_MAIL_SERVER: "email"
20
20
REDASH_ENFORCE_CSRF: "true"
21
+ REDASH_GUNICORN_TIMEOUT: 60
21
22
# Set secret keys in the .env file
22
23
services:
23
24
server:
You can’t perform that action at this time.
0 commit comments