__init__.py 540 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. # @Author: privacy
  3. # @Date: 2024-08-27 11:19:15
  4. # @Last Modified by: privacy
  5. # @Last Modified time: 2024-09-03 15:48:03
  6. from celery import Celery
  7. celery_app = Celery(
  8. 'tasks',
  9. broker='redis://:test@127.0.0.1:6379/0',
  10. backend='redis://:test@127.0.0.1:6379/1',
  11. include=[
  12. 'celery_tasks.commonprocess',
  13. # 'celery_tasks.business_part',
  14. # 'celery_tasks.technical_part'
  15. ]
  16. )
  17. # celery_app.config_from_object('celeryconfig')
  18. if __name__ == '__main__':
  19. celery_app.start()