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

   Closes: #51910
   
   ### What this PR does
   
   Fixes unclosed `aiohttp.ClientSession` and `TCPConnector` warnings when 
using `DatabricksRunNowOperator` with `deferrable=True` in Airflow 3.0.2 and 
Databricks Provider 7.4.0.
   
   ### Background
   
   As described in #51910, the following errors appear during deferrable task 
execution:
   
   ```
   Unclosed client session
   client_session: <aiohttp.client.ClientSession object at 0x...>
   
   Unclosed connector
   connector: <aiohttp.connector.TCPConnector object at 0x...>
   ```
   
   These indicate improper async resource cleanup during trigger polling.
   
   ### Fix
   
   - Ensures `aiohttp.ClientSession` and `TCPConnector` are properly closed
   - Applies best practices for async resource lifecycle management in the 
trigger
   
   ### Status
   
   - [x] Initial fix implemented
   - [ ] Unit tests in progress
   - [ ] Manual testing in progress
   
   ---
   
   Opening as a **Draft PR** to allow early feedback.


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