Skip to content

Commit 3624f8f

Browse files
Feature: allow configuration / increase of gunicorn timeout (#5783)
1 parent 65f7b6c commit 3624f8f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bin/docker-entrypoint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ server() {
3232
# Recycle gunicorn workers every n-th request. See http://docs.gunicorn.org/en/stable/settings.html#max-requests for more details.
3333
MAX_REQUESTS=${MAX_REQUESTS:-1000}
3434
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
3637
}
3738

3839
create_db() {

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ x-redash-environment: &redash-environment
1818
REDASH_MAIL_DEFAULT_SENDER: "[email protected]"
1919
REDASH_MAIL_SERVER: "email"
2020
REDASH_ENFORCE_CSRF: "true"
21+
REDASH_GUNICORN_TIMEOUT: 60
2122
# Set secret keys in the .env file
2223
services:
2324
server:

0 commit comments

Comments
 (0)