jaketf commented on a change in pull request #6210: [AIRFLOW-5567] [Do not
Merge] prototype BaseAsyncOperator
URL: https://github.com/apache/airflow/pull/6210#discussion_r329364099
##########
File path: airflow/sensors/base_sensor_operator.py
##########
@@ -121,7 +122,17 @@ def execute(self, context: Dict) -> None:
raise AirflowRescheduleException(reschedule_date)
else:
sleep(self.poke_interval)
- self.log.info("Success criteria met. Exiting.")
+
+ if isinstance(self, BaseAsyncOperator):
Review comment:
I wanted to avoid trying to call `self.process_request` on a
`BaseSensorOperator` and getting some no such class method error (as in my
current model process_request would only be defined for BaseAsyncOperators).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services