uranusjr commented on code in PR #30014:
URL: https://github.com/apache/airflow/pull/30014#discussion_r1141980826
##########
airflow/providers/google/cloud/sensors/gcs.py:
##########
@@ -99,10 +102,43 @@ def poke(self, context: Context) -> bool:
)
return hook.exists(self.bucket, self.object, self.retry)
+ def execute(self, context: Context) -> None:
+ """Airflow runs this method on the worker and defers using the
trigger."""
+ if self.deferrable is False:
Review Comment:
```suggestion
if not self.deferrable:
```
(Maybe the entire block can be flipped to `if self.deferrable ... else`?)
--
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]