From 631bb439a41a14f0ddaf6ba9c5f8e85dd9bc66b4 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Mon, 12 Feb 2018 21:55:19 -0500 Subject: [PATCH] Remove celery setting namespace. Somehow it prevents celerybeat tasks from being registered. Doesn't work with or without the namespace prefix on CELERYBEAT_SCHEDULE Thanks @warlof --- allianceauth/project_template/project_name/celery.py | 2 +- allianceauth/project_template/project_name/settings/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/allianceauth/project_template/project_name/celery.py b/allianceauth/project_template/project_name/celery.py index 26dcc78c..dc9b4d39 100644 --- a/allianceauth/project_template/project_name/celery.py +++ b/allianceauth/project_template/project_name/celery.py @@ -10,7 +10,7 @@ app = Celery('{{ project_name }}') # Using a string here means the worker don't have to serialize # the configuration object to child processes. -app.config_from_object('django.conf:settings', namespace='CELERY') +app.config_from_object('django.conf:settings') # Load task modules from all registered Django app configs. app.autodiscover_tasks(lambda: settings.INSTALLED_APPS) diff --git a/allianceauth/project_template/project_name/settings/base.py b/allianceauth/project_template/project_name/settings/base.py index 8cf40457..630121d8 100644 --- a/allianceauth/project_template/project_name/settings/base.py +++ b/allianceauth/project_template/project_name/settings/base.py @@ -39,7 +39,7 @@ INSTALLED_APPS = [ ] # Celery configuration -CELERY_BROKER_URL = 'redis://localhost:6379/0' +BROKER_URL = 'redis://localhost:6379/0' CELERYBEAT_SCHEDULER = "django_celery_beat.schedulers.DatabaseScheduler" CELERYBEAT_SCHEDULE = { 'esi_cleanup_callbackredirect': {