mik-laj edited a comment on issue #10855:
URL: https://github.com/apache/airflow/issues/10855#issuecomment-690297658


   You should pass conn_id to callable and this callable should use `conn = 
BaseHook.get_connection(CONN_ID)` to read credentials.  This is the recommended 
and official way to manage credentials data for operators..
   
   Otherwise, your DAG will make a lot of database queries. In the community, 
we have automatic tests on CIs that detect and block such DAG file.
   
https://github.com/apache/airflow/blob/ff7232761497985720387c4288439ac1dce2ee77/tests/test_example_dags.py#L47
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to