From fec623b4448a47f24b0e634c2508520ae0008cd2 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Wed, 30 Jun 2021 00:10:05 -0400 Subject: [PATCH] fix: Update how the heartbeat routing key is determined. When the heartbeat was moved to the high priority queue, the production override did not take into account the fact that the name of the high_priority queue changes in the production.py file. Update the part of production.py that sets the default routing key so that the new HIGH_PRIORITY_QUEUE name is picked up unless there is an override. --- lms/envs/production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/envs/production.py b/lms/envs/production.py index 70bfa038ad17..c819752f789d 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -564,7 +564,7 @@ def get_env_setting(setting): TRACKING_SEGMENTIO_SOURCE_MAP = ENV_TOKENS.get("TRACKING_SEGMENTIO_SOURCE_MAP", TRACKING_SEGMENTIO_SOURCE_MAP) # Heartbeat -HEARTBEAT_CELERY_ROUTING_KEY = ENV_TOKENS.get('HEARTBEAT_CELERY_ROUTING_KEY', HEARTBEAT_CELERY_ROUTING_KEY) +HEARTBEAT_CELERY_ROUTING_KEY = ENV_TOKENS.get('HEARTBEAT_CELERY_ROUTING_KEY', HIGH_PRIORITY_QUEUE) # Student identity verification settings VERIFY_STUDENT = AUTH_TOKENS.get("VERIFY_STUDENT", VERIFY_STUDENT)