Fix celery task running

This commit is contained in:
2023-02-16 02:38:30 -05:00
parent 21df4e0a77
commit 4ae70ef1f1
3 changed files with 9 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import os
from celery import Celery
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vrobbler.settings")
app = Celery()
app = Celery("vrobbler")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()