How to structure celery tasks
问题 I have 2 types of task: async tasks and schedule tasks. So, here is my dir structure: proj | -- tasks | -- __init__.py | -- celeryapp.py => celery instance defined in this file. | -- celeryconfig.py | -- async | | | -- __init__.py | | | -- task1.py => from proj.tasks.celeryapp import celery | | | -- task2.py => from proj.tasks.celeryapp import celery | -- schedule | -- __init__.py | -- task1.py => from proj.tasks.celeryapp import celery | -- task2.py => from proj.tasks.celeryapp import celery