From 94af0bc5d0c0e4290a52b72a8e00a78f6ca27b8c Mon Sep 17 00:00:00 2001 From: Mariatta Date: Wed, 2 Jun 2021 15:32:14 -0700 Subject: [PATCH 1/2] Fix the redis URL --- miss_islington/tasks.py | 2 +- tests/test_backport_pr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/miss_islington/tasks.py b/miss_islington/tasks.py index 58a99f188..3975be489 100644 --- a/miss_islington/tasks.py +++ b/miss_islington/tasks.py @@ -16,7 +16,7 @@ app = celery.Celery("backport_cpython") app.conf.update( - BROKER_URL=os.environ["REDIS_URL"], CELERY_RESULT_BACKEND=os.environ["REDIS_URL"] + BROKER_URL=os.environ["HEROKU_REDIS_MAROON_TLS_URL"], CELERY_RESULT_BACKEND=os.environ["HEROKU_REDIS_MAROON_TLS_URL"] ) cache = cachetools.LRUCache(maxsize=500) diff --git a/tests/test_backport_pr.py b/tests/test_backport_pr.py index 5588451e9..cf94de680 100644 --- a/tests/test_backport_pr.py +++ b/tests/test_backport_pr.py @@ -7,7 +7,7 @@ import redis import kombu -os.environ["REDIS_URL"] = "someurl" +os.environ["HEROKU_REDIS_MAROON_TLS_URL"] = "someurl" from miss_islington import backport_pr From 851b0f4bbc82839fbfbc19e5c0f58acff2efacf7 Mon Sep 17 00:00:00 2001 From: Mariatta Date: Wed, 2 Jun 2021 15:42:46 -0700 Subject: [PATCH 2/2] Formatted with black --- miss_islington/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miss_islington/tasks.py b/miss_islington/tasks.py index 3975be489..c79704325 100644 --- a/miss_islington/tasks.py +++ b/miss_islington/tasks.py @@ -16,7 +16,8 @@ app = celery.Celery("backport_cpython") app.conf.update( - BROKER_URL=os.environ["HEROKU_REDIS_MAROON_TLS_URL"], CELERY_RESULT_BACKEND=os.environ["HEROKU_REDIS_MAROON_TLS_URL"] + BROKER_URL=os.environ["HEROKU_REDIS_MAROON_TLS_URL"], + CELERY_RESULT_BACKEND=os.environ["HEROKU_REDIS_MAROON_TLS_URL"], ) cache = cachetools.LRUCache(maxsize=500)