Use dedicated queue for notifications

This commit is contained in:
Raphael Michel
2018-11-26 12:05:16 +01:00
parent c7a04bc08a
commit 6602afdd6c

View File

@@ -573,6 +573,7 @@ CELERY_TASK_QUEUES = (
Queue('checkout', routing_key='checkout.#'),
Queue('mail', routing_key='mail.#'),
Queue('background', routing_key='background.#'),
Queue('notifications', routing_key='notifications.#'),
)
CELERY_TASK_ROUTES = ([
('pretix.base.services.cart.*', {'queue': 'checkout'}),
@@ -582,6 +583,8 @@ CELERY_TASK_ROUTES = ([
('pretix.base.services.update_check.*', {'queue': 'background'}),
('pretix.base.services.quotas.*', {'queue': 'background'}),
('pretix.base.services.waitinglist.*', {'queue': 'background'}),
('pretix.base.services.notifications.*', {'queue': 'notifications'}),
('pretix.api.webhooks.*', {'queue': 'notifications'}),
('pretix.plugins.banktransfer.*', {'queue': 'background'}),
],)