Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RQ_DASHBOARD_REDIS_URL from config file is ignored #463

Open
srazzell opened this issue Aug 30, 2023 · 1 comment
Open

RQ_DASHBOARD_REDIS_URL from config file is ignored #463

srazzell opened this issue Aug 30, 2023 · 1 comment

Comments

@srazzell
Copy link

Describe the bug
When RQ_DASHBOARD_REDIS_URL is set in the config file, rq-dashboard will not use it and use the default of "redis://127.0.0.1:6379" instead.

You can see here:

If you don't pass in the url in the command line, it will be set to the default local redis. The code needs only use the default if app.config["RQ_DASHBOARD_REDIS_URL"] is not set already.

To Reproduce
Steps to reproduce the behavior:

  1. Set RQ_DASHBOARD_REDIS_URL in a config file
  2. Run rq-dashboard without -u but with -c pointing to the config file
  3. Try to load the home page and it will fail to connect to redis (if you don't have a local redis running)

Expected behavior
If RQ_DASHBOARD_REDIS_URL is set in the config file/settings, it should use that url to connect to redis.

@superjcvd
Copy link

config file provided with --config option or RQ_DASHBOARD_SETTINGS env variable are both ignored!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants