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

   Closes: #55724
   
   Fix unclosed `aiohttp.ClientSession` and `TCPConnector` warnings when using 
`AzureDataFactoryRunPipelineOperator` with `deferrable=True`.
   
   The `AzureDataFactoryAsyncHook` creates an 
`AsyncDataFactoryManagementClient` but never closes it, causing resource leak 
errors in logs regardless of pipeline success/failure.
   
   ### Changes
   - Add `__aenter__`, `__aexit__`, and `close()` methods to 
`AzureDataFactoryAsyncHook`
   - Update triggers to use `async with hook:` for proper cleanup
   - Add unit tests for context manager behavior
   
   Follows the same pattern as #52119 (Databricks fix).
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   ---


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