# -*- coding: utf-8 -*- from celery import Celery import sys app = Celery('MBTCPMTask') # 创建 Celery 实例 app.config_from_object('CeleryConfig') # 通过 Celery 实例加载配置模块