зеркало из https://github.com/mozilla/kitsune.git
Merge pull request #5822 from escattone/fix-celery-priority-queue-1573
fix issues with Celery task routes
This commit is contained in:
Коммит
b77eb6c540
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
exec newrelic-admin run-program celery -A kitsune worker --max-tasks-per-child=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25}
|
||||
exec newrelic-admin run-program celery -A kitsune worker -Q celery,priority --max-tasks-per-child=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25}
|
||||
|
|
|
@ -9,8 +9,7 @@ app = Celery("kitsune")
|
|||
app.config_from_object("django.conf:settings", namespace="CELERY")
|
||||
app.autodiscover_tasks()
|
||||
app.conf.task_routes = {
|
||||
"kitusne.announcements.tasks.send_group_email": {"queue": "priority"},
|
||||
"kitsune.announcements.tasks.send_group_email": {"queue": "priority"},
|
||||
"kitsune.messages.tasks.email_private_message": {"queue": "priority"},
|
||||
"kitsune.tidings.tasks.send_emails": {"queue": "priority"},
|
||||
"kitsune.messages.tasks.email_private_messages": {"queue": "priority"},
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче