moviewyrm/bookwyrm/tasks.py

12 lines
336 B
Python
Raw Normal View History

2021-03-08 16:49:10 +00:00
""" background tasks """
import os
2020-04-22 13:53:22 +00:00
from celery import Celery
2021-09-07 20:51:59 +00:00
from celerywyrm import settings
# set the default Django settings module for the 'celery' program.
2021-03-08 16:49:10 +00:00
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "celerywyrm.settings")
app = Celery(
2021-09-07 20:51:59 +00:00
"tasks", broker=settings.CELERY_BROKER_URL, backend=settings.CELERY_RESULT_BACKEND
)