Closed dmeibusch closed 3 years ago
Interesting.
Can you help me with creation of test case that fails?
This was out of the box Airflow 2.0.1 with MySQL DB and example dags provided. What would help for a test case?
Ok, digging through the code, I can see that it is probably falling through to default
in line 139 in the durations
dict to possibly get this exception on a value - epoch
expression.
I'm using the mysql+mysqlconnector
driver for the connection - I'm not sure with that driver what Session.bind.driver
returns.
Yup, I think that's the problem:
>>> db.session.bind
Engine(mysql+mysqlconnector://root:***@127.0.0.1:3307/airflow?charset=utf8)
>>> db.session.bind.driver
'mysqlconnector'
Adding mysqlconnector
to the dict with the same value as mysqldb
has fixed the issue for me.
@dmeibusch I see, we have pending PR that fixes this issue: https://github.com/epoch8/airflow-exporter/pull/94
For some reason I was sure, that it is already merged. Will do
Should be fixed in v1.5.1
Airflow 2.0.1 with MySQL db airflow exporter 1.5.0