mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-21 23:56:34 +00:00
11 lines
336 B
Python
11 lines
336 B
Python
""" background tasks """
|
|
import os
|
|
from celery import Celery
|
|
|
|
from celerywyrm 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_URL, backend=settings.CELERY_RESULT_BACKEND
|
|
)
|