SalikramPaudel commented on issue #51910:
URL: https://github.com/apache/airflow/issues/51910#issuecomment-2993308864

   Hi team, I was able to reproduce this issue using the latest stable versions:
   
   apache-airflow==3.0.2
   
   apache-airflow-providers-databricks==7.4.0
   
   Authentication: Azure AAD with ClientSecretCredential
   
   Operator: DatabricksRunNowOperator(deferrable=True)
   
   When the task is deferred, I still see the following warning right after 
token refresh succeeds:
   
   ```
   [2025-06-20, 22:53:02] INFO - ClientSecretCredential.get_token succeeded: 
source="azure.identity.aio._internal.get_token_mixin"
   [2025-06-20, 22:53:02] ERROR - Unclosed client session
   client_session: <aiohttp.client.ClientSession object at 0x7f8db1fac590>: 
source="asyncio"
   
[20[25](http://localhost:8080/dags/test_deferrable_databricks/runs/manual__2025-06-21T03:52:54.867109+00:00/tasks/run_now_task?try_number=1#25)-06-20,
 22:53:02] ERROR - Unclosed connector
   connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 
0x7f8db1f0bb90>, 784043.395003365)])']
   connector: <aiohttp.connector.TCPConnector object at 0x7f8db11cab10>: 
source="asyncio"
   ```
   
   The run-id is generated successfully, and the job proceeds, but this warning 
appears right after:
   ```
   Pausing task as DEFERRED...
   ClientSecretCredential.get_token succeeded...
   <unclosed session warning appears here>
   ```
   
   I am working on a potential fix for this issue — it would be my first 
contribution to Airflow.
   Could you please assign it to me?  I'd love to contribute! @albertwangnz 


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