You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/02/24 13:18:43 UTC

[GitHub] [airflow] ashb commented on a change in pull request #7473: [AIRFLOW-6852] Force reschedule mode for sensors when running on SequentialExecutor

ashb commented on a change in pull request #7473: [AIRFLOW-6852] Force reschedule mode for sensors when running on SequentialExecutor
URL: https://github.com/apache/airflow/pull/7473#discussion_r383259139
 
 

 ##########
 File path: airflow/models/taskinstance.py
 ##########
 @@ -909,7 +909,7 @@ def _run_raw_task(
                 # with single process executor, thus we change the mode to`reschedule`
                 # to allow parallel task being scheduled and executed
                 if isinstance(task_copy, BaseSensorOperator) and \
-                        conf.get('core', 'executor') == "DebugExecutor":
+                        conf.get('core', 'executor') in ["DebugExecutor", "SequentialExecutor"]:
                     self.log.warning("DebugExecutor changes sensor mode to 'reschedule'.")
 
 Review comment:
   This log needs updating anyway :)

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services