-
I read the documentation (https://airflow.apache.org/docs/apache-airflow/stable/security/secrets/secrets-backend/index.html#secrets-backend-configuration, https://airflow.apache.org/docs/apache-airflow/stable/howto/set-config.html) and some other posts (which #19217) and I am always stuck: at the initialization the db connection is created via the specified command or the specified (custom) secret manager (I tried both ways) but the db connection is never re-created.
When the generated credentials expire, the db connection become unusable, which is expected :
The traceback shows that the db connction params (in fact the kwargs after some debbging) are always the same.
But the problem is that these exceptions loop forever. The cmd If I don't find something, i will probably modify some Airflow source files of my docker Image to force the thing in a dirty way but it is not the right way, so I ask before. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I solved the problem by creating an airflow plugin that force the call to the script at each new SQLAlchemy connection. |
Beta Was this translation helpful? Give feedback.
I solved the problem by creating an airflow plugin that force the call to the script at each new SQLAlchemy connection.