title: How to structure celery tasks
body: <p>I have 2 types of task: async tasks and schedule tasks. So, here is my dir structure:</p>
  
  <pre><code>proj
    |
    -- tasks
        |
        -- __init__.py
        |
        -- celeryapp.py     =&gt; celery instance defined in this file.
        |
        -- celeryconfig.py
        |
        -- async
        |    |
        |    -- __init__.py
        |    |
        |    -- task1.py    =&gt; from proj.tasks.celeryapp import celery
        |    |
        |    -- task2.py    =&gt; from proj.tasks.celeryapp import celery
        |
        -- schedule
             |
             -- __init__.py
             |
             -- task1.py    =&gt; from proj.tasks.celeryapp import celery
             |
             -- task2.py    =&gt; from proj.tasks.celeryapp import celery
  </code></pre>
  
  <p>But when I run celery worker like below, it does not work. It can not accept the task from celery beat scheduler.</p>
  
  <pre><code> $ celery worker --app=tasks -Q my_queue,default_queue
  </code></pre>
  
  <p>So, is there any best practice on multiple task files organization?</p>