mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 14:00:17 +02:00
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
This commit is contained in:
parent
a4003e188e
commit
631bb439a4
@ -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)
|
||||
|
@ -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': {
|
||||
|
Loading…
x
Reference in New Issue
Block a user