Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

If you have problems when downloading large results sets from reDash it may be you are running against the default 30 seconds timeout in gunicorn. To solve this you can edit your:

/opt/redash/supervisord/supervisord.conf

and change:

[program:redash_server]
command=/opt/redash/current/bin/run gunicorn -b 127.0.0.1:5000 --name redash -w 4 redash.wsgi:app

to

command=/opt/redash/current/bin/run gunicorn -b 127.0.0.1:5000 --name redash -t 300 -w 4 redash.wsgi:app

Hope it helps, Pablo

@hara5

This comment has been minimized.

Copy link

@hara5 hara5 commented May 8, 2019

Hey Pablo,
any idea, how to configure this with redash docker setup?

@acondrat

This comment has been minimized.

Copy link

@acondrat acondrat commented Feb 17, 2020

Seems like you can set it with the GUNICORN_CMD_ARGS environment variable.

GUNICORN_CMD_ARGS="--timeout=300"

https://docs.gunicorn.org/en/stable/settings.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.