11 lines
240 B
Python
11 lines
240 B
Python
from celery import Celery
|
|
from backend.config import CELERY_RESULT_BACKEND, CELERY_BROKER_URL
|
|
|
|
celery = Celery(
|
|
__name__,
|
|
broker=CELERY_BROKER_URL,
|
|
backend=CELERY_RESULT_BACKEND,
|
|
|
|
)
|
|
celery.conf.result_backend_thread_safe = True
|