From 4f3017c88b37126ee3834955262097745e2c57bd Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Wed, 28 Sep 2016 09:03:45 +0100 Subject: [PATCH] Old config reinstated for now. Pull requests as was would mean that we didn't read from the old queues, so whilst the new code writes to the new "notify" queue, the old code would write to the old plethera of queues. And the readers may not pick it up depending on the order of the deploy. Safer to leave readers reading from all queues until after the deploy then doing a second deploy to tidy up the config. --- config.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index a1739baeb..da4ceb6e5 100644 --- a/config.py +++ b/config.py @@ -119,8 +119,20 @@ class Config(object): Queue('process-job', Exchange('default'), routing_key='process-job'), Queue('research-mode', Exchange('default'), routing_key='research-mode'), Queue('retry', Exchange('default'), routing_key='retry'), - Queue('notify', Exchange('default'), routing_key='notify') + Queue('notify', Exchange('default'), routing_key='notify'), + Queue('sms', Exchange('default'), routing_key='sms'), # DELETE FROM HERE ONCE SHIPPED + Queue('email', Exchange('default'), routing_key='email'), + Queue('sms-code', Exchange('default'), routing_key='sms-code'), + Queue('email-code', Exchange('default'), routing_key='email-code'), + Queue('email-reset-password', Exchange('default'), routing_key='email-reset-password'), + Queue('remove-job', Exchange('default'), routing_key='remove-job'), + Queue('bulk-sms', Exchange('default'), routing_key='bulk-sms'), + Queue('bulk-email', Exchange('default'), routing_key='bulk-email'), + Queue('email-invited-user', Exchange('default'), routing_key='email-invited-user'), + Queue('email-registration-verification', Exchange('default'), routing_key='email-registration-verification'), + Queue('email-already-registered', Exchange('default'), routing_key='email-already-registered') ] + API_HOST_NAME = "http://localhost:6011" NOTIFICATIONS_ALERT = 5 # five mins