123
This commit is contained in:
8
background/worker.py
Normal file
8
background/worker.py
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user