Last active
April 3, 2022 23:57
-
-
Save Geremie/2280ad91ee260a4af8945e3c558b48db to your computer and use it in GitHub Desktop.
Are you using Cloud Functions for event based processing ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def poke(self, context): | |
| hook = GCSHook( | |
| gcp_conn_id=self.google_cloud_conn_id, | |
| delegate_to=self.delegate_to, | |
| impersonation_chain=self.impersonation_chain, | |
| ) | |
| for bucket in self.buckets: | |
| match = [{'bucket': bucket, 'object': object} | |
| for object in hook.list(bucket)] | |
| self._matches.extend(match) | |
| return bool(self._matches) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment