Closed turtlemonvh closed 8 years ago
OK - figured it out. This one has to win the award for one of the most misleading error messages of all time.
The problem was this setting:
# Was
celery_result_backend = psycopg2://username:password@postgres:5432/default
# Should be
celery_result_backend = db+postgresql+psycopg2://username:password@postgres:5432/default
I originally had the same string I was using for my sql_alchemy_conn
setting:
celery_result_backend = postgresql+psycopg2://username:password@postgres:5432/default
But that one failed in a different (more obvious) way.
Boo non-standard connection urls.
For those who come in the future, here are the relevent docs: http://celery.readthedocs.org/en/latest/configuration.html#database-url-examples
Here's a feature request to celery to make the error messages more helpful: https://github.com/celery/celery/issues/2945
This is the stacktrace I am getting
I've tried running this a variety of ways:
celery_app_name
root
orairflow
userceleryd_concurrency
valuesBut none of these changes have made a difference.
Running a task locally (like
airflow run -l dag_id task_id 2015-11-30
) works fine but running the same task over celery (likeairflow run dag_id task_id 2015-11-30
) gives the same warning.The configuration I am using is below, with a few passwords changed
These are the exact versions of the libraries I am using with Python 2.7.6
Thanks.