m1racoli opened a new pull request, #47326:
URL: https://github.com/apache/airflow/pull/47326

   The AwsGenericHook provides the `@property` decorated method `async_conn` 
for building and accessing the async boto3 client. Unfortunately, this is 
results in blocking calls to the Airflow Db or secrets backends within async 
contexts.
   
   This PR provides an async method `get_async_conn` as an alternative that can 
be awaited in async contexts. This method will call the original sync code in a 
`sync_to_async` wrapper to avoid any side effects from potentially blocking 
`@property` or `@cached_property` decorated methods used downstream.
   
   The `async_conn` property is now deprecated and will be removed in future 
versions.
   
   closes: #47312


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