moviewyrm/fedireads/tasks.py
2020-03-31 17:00:01 -07:00

14 lines
297 B
Python

''' background tasks '''
from celery import Celery
import os
from fedireads import settings
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fr_celery.settings')
app = Celery(
'tasks',
broker=settings.CELERY_BROKER,
)