celery_app.py 179 B

12345678
  1. from celery import Celery
  2. from celery_config import CELERY_CONFIG
  3. app = Celery('long_articles_tasks')
  4. app.conf.update(**CELERY_CONFIG)
  5. if __name__ == '__main__':
  6. app.start()