mik-laj commented on a change in pull request #7888: Avoid loading executors in 
jobs
URL: https://github.com/apache/airflow/pull/7888#discussion_r398770391
 
 

 ##########
 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:
   Should we also add DaskExecutor here?

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


With regards,
Apache Git Services

Reply via email to