moviewyrm/bookwyrm/tasks.py

13 lines
295 B
Python
Raw Normal View History

''' background tasks '''
import os
2020-04-22 13:53:22 +00:00
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,
)