moviewyrm/bookwyrm/tasks.py
2021-07-03 00:22:55 -07:00

11 lines
330 B
Python

""" background tasks """
import os
from celery import Celery
from bookwyrm 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
)