ashb commented on code in PR #31081:
URL: https://github.com/apache/airflow/pull/31081#discussion_r1193770129


##########
airflow/providers/google/cloud/sensors/gcs.py:
##########
@@ -514,3 +518,40 @@ def poke(self, context: Context) -> bool:
         return self.is_bucket_updated(
             set(self._get_gcs_hook().list(self.bucket, prefix=self.prefix))  # 
type: ignore[union-attr]
         )
+
+    def execute(self, context: Context) -> None:
+        """Airflow runs this method on the worker and defers using the 
trigger."""
+        hook_params = {"impersonation_chain": self.impersonation_chain}
+
+        if not self.deferrable:
+            super().execute(context)
+            return

Review Comment:
   ```suggestion
               return super().execute(context)
   ```
   
   Otherwise any possible return value won't make it to xcom 



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