Removed references to old queus

This commit is contained in:
Martyn Inglis
2017-05-30 11:24:26 +01:00
parent f7e1ccea8b
commit d74675b6d8
2 changed files with 7 additions and 28 deletions

View File

@@ -24,23 +24,6 @@ class QueueNames(object):
NOTIFY = 'notify-internal-tasks' NOTIFY = 'notify-internal-tasks'
PROCESS_FTP = 'process-ftp-tasks' PROCESS_FTP = 'process-ftp-tasks'
@staticmethod
def old_queues():
return [
'db-sms',
'db-email',
'db-letter',
'priority',
'periodic',
'send-sms',
'send-email',
'research-mode',
'statistics',
'notify',
'retry',
'process-job'
]
@staticmethod @staticmethod
def all_queues(): def all_queues():
return [ return [
@@ -262,8 +245,6 @@ class Development(Config):
NOTIFICATION_QUEUE_PREFIX = 'development' NOTIFICATION_QUEUE_PREFIX = 'development'
DEBUG = True DEBUG = True
queues = QueueNames.all_queues() + QueueNames.old_queues()
for queue in QueueNames.all_queues(): for queue in QueueNames.all_queues():
Config.CELERY_QUEUES.append( Config.CELERY_QUEUES.append(
Queue(queue, Exchange('default'), routing_key=queue) Queue(queue, Exchange('default'), routing_key=queue)
@@ -283,9 +264,7 @@ class Test(Config):
STATSD_HOST = "localhost" STATSD_HOST = "localhost"
STATSD_PORT = 1000 STATSD_PORT = 1000
queues = QueueNames.all_queues() + QueueNames.old_queues() for queue in QueueNames.all_queues():
for queue in queues:
Config.CELERY_QUEUES.append( Config.CELERY_QUEUES.append(
Queue(queue, Exchange('default'), routing_key=queue) Queue(queue, Exchange('default'), routing_key=queue)
) )

View File

@@ -23,33 +23,33 @@ applications:
NOTIFY_APP_NAME: delivery-celery-beat NOTIFY_APP_NAME: delivery-celery-beat
- name: notify-delivery-worker-database - name: notify-delivery-worker-database
command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=11 -Q db-sms,db-email,db-letter,database-tasks command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=11 -Q database-tasks
env: env:
NOTIFY_APP_NAME: delivery-worker-database NOTIFY_APP_NAME: delivery-worker-database
- name: notify-delivery-worker-research - name: notify-delivery-worker-research
command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=5 -Q research-mode,research-mode-tasks command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=5 -Q research-mode-tasks
env: env:
NOTIFY_APP_NAME: delivery-worker-research NOTIFY_APP_NAME: delivery-worker-research
- name: notify-delivery-worker-sender - name: notify-delivery-worker-sender
command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=11 -Q send-sms,send-email,send-tasks command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=11 -Q send-tasks
env: env:
NOTIFY_APP_NAME: delivery-worker-sender NOTIFY_APP_NAME: delivery-worker-sender
- name: notify-delivery-worker-periodic - name: notify-delivery-worker-periodic
command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=2 -Q periodic,statistics,periodic-tasks,statistics-tasks command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=2 -Q periodic-tasks,statistics-tasks
instances: 1 instances: 1
memory: 2G memory: 2G
env: env:
NOTIFY_APP_NAME: delivery-worker-periodic NOTIFY_APP_NAME: delivery-worker-periodic
- name: notify-delivery-worker-priority - name: notify-delivery-worker-priority
command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=5 -Q priority,priority-tasks command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=5 -Q priority-tasks
env: env:
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 -Q process-job,notify,retry,job-tasks,retry-tasks,notify-internal-tasks command: scripts/run_app_paas.sh celery -A aws_run_celery.notify_celery worker --loglevel=INFO --concurrency=11 -Q job-tasks,retry-tasks,notify-internal-tasks
env: env:
NOTIFY_APP_NAME: delivery-worker NOTIFY_APP_NAME: delivery-worker