示例#1
0
 def poke(self, context: dict) -> bool:
     self.log.info('Sensor checks existence of : %s, %s', self.bucket, self.object)
     hook = GCSHook(
         gcp_conn_id=self.google_cloud_conn_id,
         delegate_to=self.delegate_to,
         impersonation_chain=self.impersonation_chain,
     )
     return hook.exists(self.bucket, self.object)
示例#2
0
文件: gcs.py 项目: stu12345/airflow
 def poke(self, context):
     self.log.info('Sensor checks existence of : %s, %s', self.bucket,
                   self.object)
     hook = GCSHook(google_cloud_storage_conn_id=self.google_cloud_conn_id,
                    delegate_to=self.delegate_to)
     return hook.exists(self.bucket, self.object)