0
votes

I installed latest apache-airflow(1.9.0) with celery(4.1.0)executor.

Here is my settings from airflow.cfg:

broker_url = sqla+mysql://username:password@host:3306/dbname

Taken from http://docs.sqlalchemy.org/en/latest/dialects/mysql.html#module-sqlalchemy.dialects.mysql.pymysql.

Tried to run airflow worker got

TypeError: Invalid argument(s) 'visibility_timeout' sent to create engine(), using configuration MySQLDialect_mysqldb/QueuePool/Engine. Please check that the keyword arguments are appropriate for this combination of components.

Note that I did not send any explicit arguments to create engine().

This is the screenshot of my error. Any help from experts would be appreciated.

2
Can you please edit your question and provide the full trace of the error rather than just the line you think is the error? - Simon D
Please see my edit if that helps. I could not provide full stack trace as I am using remote machine which is fully restricted to expose outside world. - Sujith Kumar A

2 Answers

3
votes

This is a known bug in Airflow 1.9.0 which has been fixed in:

There is an upcoming Airflow 1.10 release coming up which has these fixes. If you can wait for that, use that.

If you must stick with Airflow 1.9.0, then try switching your broker_url to use a Redis database instead of a sqla+mysql scheme

0
votes

Looks like a bug.

You can see that visibility_timeout is a default option passed to the Celery broker as defined here.

My guess is that this option is being sent to the SQLAlchemy broker by Celery, after being forwarded by Airflow in the app constructor, but I'm not entirely sure. I couldn't trace back all the way because you didn't provide the stack trace.