You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/10 12:22:19 UTC
[GitHub] [airflow] utkarsharma2 commented on a diff in pull request #28763: Add deferrable ``GCSObjectExistenceSensorAsync``
utkarsharma2 commented on code in PR #28763:
URL: https://github.com/apache/airflow/pull/28763#discussion_r1065720529
##########
airflow/providers/google/cloud/hooks/gcs.py:
##########
@@ -1174,3 +1177,14 @@ def _parse_gcs_url(gsurl: str) -> tuple[str, str]:
# Remove leading '/' but NOT trailing one
blob = parsed_url.path.lstrip("/")
return bucket, blob
+
+
+class GCSAsyncHook(GoogleBaseAsyncHook):
+ """GCSAsyncHook run on the trigger worker, inherits from GoogleBaseHookAsync"""
+
+ sync_hook_class = GCSHook
Review Comment:
@phanikumv If this is a constant should be in caps - `SYNC_HOOK_CLASS`
--
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