amoghrajesh commented on code in PR #47946:
URL: https://github.com/apache/airflow/pull/47946#discussion_r2003167107
##########
task-sdk/src/airflow/sdk/definitions/connection.py:
##########
@@ -87,6 +88,35 @@
return _get_connection(conn_id)
+ @classmethod
+ def get_connection_from_secrets(cls, conn_id: str) -> Connection:
+ """
+ Get connection by conn_id.
+
+ :param conn_id: connection id
+ :return: connection
+ """
+ # TODO: check cache first
+ # enabled only if SecretCache.init() has been called first
+
+ # iterate over configured backends if not in cache (or expired)
+ from airflow.sdk.execution_time.supervisor import SECRETS_BACKEND
+
+ for secrets_backend in SECRETS_BACKEND:
+ print("The backend in the sdk is", secrets_backend)
Review Comment:
Ah debug log forgotten and pushed!
--
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]