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/03/26 18:09:24 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #7888: Avoid loading executors in jobs

kaxil commented on a change in pull request #7888: Avoid loading executors in jobs
URL: https://github.com/apache/airflow/pull/7888#discussion_r398786623
 
 

 ##########
 File path: airflow/jobs/scheduler_job.py
 ##########
 @@ -1518,7 +1517,9 @@ def _execute(self):
 
         # DAGs can be pickled for easier remote execution by some executors
         pickle_dags = False
-        if self.do_pickle and self.executor.__class__ not in (LocalExecutor, SequentialExecutor):
+        if self.do_pickle and self.executor_class not in (
+            ExecutorLoader.LOCAL_EXECUTOR, ExecutorLoader.SEQUENTIAL_EXECUTOR,
 
 Review comment:
   Yes we should

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