A-Costa commented on code in PR #34137:
URL: https://github.com/apache/airflow/pull/34137#discussion_r1318321804


##########
airflow/providers/google/cloud/triggers/gcs.py:
##########
@@ -98,9 +102,14 @@ async def _object_exists(self, hook: GCSAsyncHook, 
bucket_name: str, object_name
         async with ClientSession() as s:
             client = await hook.get_storage_client(s)
             bucket = client.get_bucket(bucket_name)
-            object_response = await bucket.blob_exists(blob_name=object_name)
-            if object_response:
-                return "success"
+            if self.use_glob:
+                object_response = await 
bucket.list_blobs(match_glob=object_name)

Review Comment:
   this depends on https://github.com/talkiq/gcloud-aio/pull/634



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