title: Celery in a different module than main (flask) app
body: <p>I'm running a Flask app with celery.
  I have some rest controllers which call some tasks that run with celery.</p>
  
  <p>Do I have to define the tasks in the same main python file which has the flask app context?</p>
  
  <p>I'd like to have celery in another module, like a "TaskRunner" module or something like that, then let the flask app/ controller use that service to call/run the actual tasks.</p>
  
  <p>How can I pass the app context (or the celery instance) to the TaskRunner to that I can use celery from there? and use the <code>@celery.task</code> anotation over there?</p>
  
  <p>Thanks in advance</p>