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 *