mis98zb commented on PR #32876:
URL: https://github.com/apache/airflow/pull/32876#issuecomment-1653058599

   And, there are similar exception when I use hook inside the dag_run_listener.
   By investigating, I found that hooks will use 
`Connection.get_connection_from_secrets(conn_id)` to get connection.
   There are two default secret back ends: EnvironmentVariablesBackend and 
MetastoreBackend.
   The MetastoreBackend uses `@provide_session` to open a new session, and do 
commit.
   The exception is raised on committing...
   
   For this, I have to change to use environment variables to set connection.
   But this is not encrypted.
   Do you have suggestions for this?


-- 
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]

Reply via email to