Lee-W commented on code in PR #54219:
URL: https://github.com/apache/airflow/pull/54219#discussion_r2266181460
##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/wasb.py:
##########
@@ -154,10 +155,17 @@ def _get_field(self, extra_dict, field_name):
return extra_dict[field_name] or None
return extra_dict.get(f"{prefix}{field_name}") or None
- @cached_property
- def blob_service_client(self) -> BlobServiceClient:
+ @property
+ def blob_service_client(self) -> AsyncBlobServiceClient |
BlobServiceClient:
"""Return the BlobServiceClient object (cached)."""
- return self.get_conn()
+ if self._blob_service_client is None:
+ self._blob_service_client = self.get_conn()
+ return self._blob_service_client
+
+ @blob_service_client.setter
+ def blob_service_client(self, client: AsyncBlobServiceClient):
Review Comment:
```suggestion
def blob_service_client(self, client: AsyncBlobServiceClient) -> None:
```
--
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]