1
0
Fork 0

Simply celery settings

This commit is contained in:
Mouse Reeve 2021-09-07 13:51:59 -07:00
parent 53e0e9ae1e
commit 37dcae4558
4 changed files with 21 additions and 14 deletions

View file

@ -2,10 +2,10 @@
import os
from celery import Celery
from bookwyrm import settings
from celerywyrm import settings
# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "celerywyrm.settings")
app = Celery(
"tasks", broker=settings.CELERY_BROKER, backend=settings.CELERY_RESULT_BACKEND
"tasks", broker=settings.CELERY_BROKER_URL, backend=settings.CELERY_RESULT_BACKEND
)