Skip to content
Snippets Groups Projects
Commit af572d7d authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Force RQ_DASHBOARD_REDIS_URL to RQ_REDIS_URL

RQ_DASHBOARD_REDIS_URL can't be set to RD_REDIS_URL in setting.py.
If RQ_REDIS_URL is changed in settings.cfg, that wouldn't update
RQ_DASHBOARD_REDIS_URL.

JIRA INFRA-2754 #action In Progress
parent dd8461e5
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,9 @@ def create_app(config=None):
)
app.logger.info(f"Settings:\n{settings_string}")
# Force RQ_DASHBOARD_REDIS_URL to RQ_REDIS_URL
app.config["RQ_DASHBOARD_REDIS_URL"] = app.config["RQ_REDIS_URL"]
db.init_app(app)
migrate.init_app(app)
login_manager.init_app(app)
......
......@@ -33,7 +33,6 @@ SESSION_REDIS_URL = "redis://redis:6379/0"
CACHE_TYPE = "redis"
CACHE_REDIS_URL = "redis://redis:6379/1"
RQ_REDIS_URL = "redis://redis:6379/2"
RQ_DASHBOARD_REDIS_URL = RQ_REDIS_URL
ELASTICSEARCH_URL = "http://elasticsearch:9200"
ELASTICSEARCH_INDEX_SUFFIX = "-dev"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment