feat: a lot of a lot
This commit is contained in:
14
background/celery_app.py
Normal file
14
background/celery_app.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from celery import Celery
|
||||
|
||||
from backend.config import CELERY_BROKER_URL, CELERY_RESULT_BACKEND
|
||||
|
||||
celery = Celery(
|
||||
__name__,
|
||||
broker=CELERY_BROKER_URL,
|
||||
backend=CELERY_RESULT_BACKEND
|
||||
)
|
||||
celery.conf.result_backend_transport_options = {
|
||||
'global_keyprefix': 'crm_'
|
||||
}
|
||||
|
||||
from .tasks import *
|
||||
Reference in New Issue
Block a user