mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-21 07:36:42 +00:00
12 lines
295 B
Python
12 lines
295 B
Python
''' background tasks '''
|
|
import os
|
|
from celery import Celery
|
|
|
|
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,
|
|
)
|