You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/09/17 09:11:40 UTC

[GitHub] [airflow] hussein-awala commented on a diff in pull request #34437: Consolidate hook management in AzureBatchOperator

hussein-awala commented on code in PR #34437:
URL: https://github.com/apache/airflow/pull/34437#discussion_r1328067141


##########
airflow/providers/microsoft/azure/operators/batch.py:
##########
@@ -181,7 +182,12 @@ def __init__(
     @cached_property
     def hook(self) -> AzureBatchHook:
         """Create and return an AzureBatchHook (cached)."""
-        return self.get_hook()
+        return AzureBatchHook(self.azure_batch_conn_id)
+
+    @deprecated(reason="use `hook` property instead.")

Review Comment:
   Right, I will update it (and the other PR)



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org