dabla commented on code in PR #71890:
URL: https://github.com/apache/airflow/pull/71890#discussion_r3979482498


##########
task-sdk/src/airflow/sdk/definitions/connection.py:
##########
@@ -306,6 +322,26 @@ def extra_dejson(self) -> dict:
 
         return extra
 
+    async def aextra_dejson(self) -> dict:
+        """
+        Async version of :attr:`extra_dejson`, safe for use inside an async 
task.
+
+        Uses :func:`~airflow.sdk.log.amask_secret` instead of the synchronous
+        ``mask_secret``, so calling this from within an async context does not
+        trigger ``DeadlockImminentError``.

Review Comment:
   Docstrings updated



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