Skip to content

Commit adf292b

Browse files
authored
Fix the redis URL (#463)
We upgraded the redis environment on Heroku a couple days ago. In the new environment, the REDIS_URL environment variable was changed to HEROKU_REDIS_MAROON_TLS_URL. Updated the code where we were hardcoding it to the old to url. Fixes #462
1 parent 1eb5071 commit adf292b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

miss_islington/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
app = celery.Celery("backport_cpython")
1717

1818
app.conf.update(
19-
BROKER_URL=os.environ["REDIS_URL"], CELERY_RESULT_BACKEND=os.environ["REDIS_URL"]
19+
BROKER_URL=os.environ["HEROKU_REDIS_MAROON_TLS_URL"],
20+
CELERY_RESULT_BACKEND=os.environ["HEROKU_REDIS_MAROON_TLS_URL"],
2021
)
2122

2223
cache = cachetools.LRUCache(maxsize=500)

tests/test_backport_pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import redis
88
import kombu
99

10-
os.environ["REDIS_URL"] = "someurl"
10+
os.environ["HEROKU_REDIS_MAROON_TLS_URL"] = "someurl"
1111

1212
from miss_islington import backport_pr
1313

0 commit comments

Comments
 (0)