GitHub user potiuk added a comment to the discussion: Remote Logging to Azure 
Blob Storage Still Broke in Airflow 3.0.4

Actually I would like to update that a bit. You **should** be able to retrieve 
connection directly in the worker, without having to define them via variables. 
I believe it'a already been fixed before - it did not work in first 3.* 
versions. But if you use the "task.sdk" to retrieve the connection rather thant 
trying to use secrets_backends to retrieve it - it **should** work.

Generally workers should never access "airflow" code directly they should only 
access task_sdk. https://airflow.apache.org/docs/task-sdk/stable/api.html -> 
you will find that Connection (from task.sdk)  hass class method "get" that 
returns you the connection. 

`get_connections_from_secrets` had never supposed to be called directly. 

The quesiton is in this case where the "get_connection_from_secrets" is 
directly called - but it's hard to say, but if the authors bothers a little and 
tries to format stack trace that is currently convoluted and hard to read - 
maybe we will be able to find out whether it's the code of author of the issue, 
or whether this is some provider not yet converted to use task.sdk properly 
(there is a work in progress to track and fix those, so @ahipp13 if you bother 
to help a little those who look and maybe get a better stack traces of the 
erorrs, that would be helpfu.



GitHub link: 
https://github.com/apache/airflow/discussions/54489#discussioncomment-14099936

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to