potiuk commented on a change in pull request #10499:
URL: https://github.com/apache/airflow/pull/10499#discussion_r475924768
##########
File path: airflow/sensors/base_sensor_operator.py
##########
@@ -159,6 +160,16 @@ def _get_next_poke_interval(self, started_at, try_number):
else:
return self.poke_interval
+ def prepare_for_execution(self) -> BaseOperator:
+ task = super().prepare_for_execution()
+ # Sensors in `poke` mode can block execution of DAGs when running
+ # with single process executor, thus we change the mode to`reschedule`
+ # to allow parallel task being scheduled and executed
+ if conf.get('core', 'executor') == "DebugExecutor":
Review comment:
I have a problem with importing it as constants (MyPy complains). I
prefer to leave it :(
----------------------------------------------------------------
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]