diff --git a/figures/settings/lms_production.py b/figures/settings/lms_production.py index 5f9217f5..0f53d93b 100644 --- a/figures/settings/lms_production.py +++ b/figures/settings/lms_production.py @@ -6,6 +6,18 @@ from celery.schedules import crontab +class FiguresRouter(object): + + def __init__(self, figures_tasks_queue_name): + self.figures_tasks_queue_name = figures_tasks_queue_name + + def route_for_task(self, task, args=None, kwargs=None): # pylint: disable=unused-argument + if task.startswith("figures.tasks."): + return self.figures_tasks_queue_name + + return None + + def update_webpack_loader(webpack_loader_settings, figures_env_tokens): """ Update the WEBPACK_LOADER in the settings.