xiaohuangji opened a new issue #20078: URL: https://github.com/apache/airflow/issues/20078
### Apache Airflow version 2.2.1 ### What happened I'm writing a plugin that needs to connect to a database and add a Modelview. I have configured the SQLALCHEMY_BINDS in webserver_config.py and set `__bind_key__` in the model, but this model keeps connecting to `core SQLALCHEMY_DATABASE_URI ` instead of the external database. ### What you expected to happen Models defined in plugins should respect `SQLALCHEMY_BINDS` ### How to reproduce _No response_ ### Operating System Ubuntu ### Versions of Apache Airflow Providers _No response_ ### Deployment Official Apache Airflow Helm Chart ### Deployment details _No response_ ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
