title: How to use Flask-SQLAlchemy in a Celery task
body: <p>I recently switch to Celery 3.0. Before that I was using <a href="https://github.com/ask/flask-celery/">Flask-Celery</a> in order to integrate Celery with Flask. Although it had many issues like hiding some powerful Celery functionalities but it allowed me to use the full context of Flask app and especially Flask-SQLAlchemy.</p>
  
  <p>In my background tasks I am processing data and the SQLAlchemy ORM to store the data. The maintainer of Flask-Celery has dropped support of the plugin. The plugin was pickling the Flask instance in the task so I could have full access to SQLAlchemy.</p>
  
  <p>I am trying to replicate this behavior in my tasks.py file but with no success. Do you have any hints on how to achieve this?</p>