mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
All queues now managed in the same way:
- TEST and DEV builds set up their own queue lists for reading - PROD/STAGE/PREVIEW use the separate worker process with the -Q flag This enables us to rename queues in due course
This commit is contained in:
@@ -160,11 +160,7 @@ class Config(object):
|
|||||||
'options': {'queue': 'periodic'}
|
'options': {'queue': 'periodic'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CELERY_QUEUES = [
|
CELERY_QUEUES = []
|
||||||
Queue('process-job', Exchange('default'), routing_key='process-job'),
|
|
||||||
Queue('retry', Exchange('default'), routing_key='retry'),
|
|
||||||
Queue('notify', Exchange('default'), routing_key='notify')
|
|
||||||
]
|
|
||||||
|
|
||||||
NOTIFICATIONS_ALERT = 5 # five mins
|
NOTIFICATIONS_ALERT = 5 # five mins
|
||||||
FROM_NUMBER = 'development'
|
FROM_NUMBER = 'development'
|
||||||
@@ -224,7 +220,10 @@ class Development(Config):
|
|||||||
Queue('send-sms', Exchange('default'), routing_key='send-sms'),
|
Queue('send-sms', Exchange('default'), routing_key='send-sms'),
|
||||||
Queue('send-email', Exchange('default'), routing_key='send-email'),
|
Queue('send-email', Exchange('default'), routing_key='send-email'),
|
||||||
Queue('research-mode', Exchange('default'), routing_key='research-mode'),
|
Queue('research-mode', Exchange('default'), routing_key='research-mode'),
|
||||||
Queue('statistics', Exchange('default'), routing_key='statistics')
|
Queue('statistics', Exchange('default'), routing_key='statistics'),
|
||||||
|
Queue('process-job', Exchange('default'), routing_key='process-job'),
|
||||||
|
Queue('retry', Exchange('default'), routing_key='retry'),
|
||||||
|
Queue('notify', Exchange('default'), routing_key='notify')
|
||||||
]
|
]
|
||||||
API_HOST_NAME = "http://localhost:6011"
|
API_HOST_NAME = "http://localhost:6011"
|
||||||
API_RATE_LIMIT_ENABLED = True
|
API_RATE_LIMIT_ENABLED = True
|
||||||
@@ -248,7 +247,10 @@ class Test(Config):
|
|||||||
Queue('send-sms', Exchange('default'), routing_key='send-sms'),
|
Queue('send-sms', Exchange('default'), routing_key='send-sms'),
|
||||||
Queue('send-email', Exchange('default'), routing_key='send-email'),
|
Queue('send-email', Exchange('default'), routing_key='send-email'),
|
||||||
Queue('research-mode', Exchange('default'), routing_key='research-mode'),
|
Queue('research-mode', Exchange('default'), routing_key='research-mode'),
|
||||||
Queue('statistics', Exchange('default'), routing_key='statistics')
|
Queue('statistics', Exchange('default'), routing_key='statistics'),
|
||||||
|
Queue('process-job', Exchange('default'), routing_key='process-job'),
|
||||||
|
Queue('retry', Exchange('default'), routing_key='retry'),
|
||||||
|
Queue('notify', Exchange('default'), routing_key='notify')
|
||||||
]
|
]
|
||||||
|
|
||||||
API_RATE_LIMIT_ENABLED = True
|
API_RATE_LIMIT_ENABLED = True
|
||||||
|
|||||||
@@ -50,6 +50,6 @@ applications:
|
|||||||
NOTIFY_APP_NAME: delivery-worker-priority
|
NOTIFY_APP_NAME: delivery-worker-priority
|
||||||
|
|
||||||
- name: notify-delivery-worker
|
- name: notify-delivery-worker
|
||||||
command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=11
|
command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=11 -Q process-job,notify,retry
|
||||||
env:
|
env:
|
||||||
NOTIFY_APP_NAME: delivery-worker
|
NOTIFY_APP_NAME: delivery-worker
|
||||||
|
|||||||
Reference in New Issue
Block a user