mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-30 12:00:36 +00:00
15 lines
297 B
Python
15 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,
|
||
|
)
|
||
|
|
||
|
|