ashb commented on a change in pull request #16700:
URL: https://github.com/apache/airflow/pull/16700#discussion_r660365084
##########
File path: airflow/jobs/backfill_job.py
##########
@@ -183,7 +186,8 @@ def __init__(
self.conf = conf
self.rerun_failed_tasks = rerun_failed_tasks
self.run_backwards = run_backwards
- super().__init__(*args, **kwargs)
+ self.executor = executor or ExecutorLoader.get_default_executor()
+ super().__init__(executor=self.executor, *args, **kwargs)
Review comment:
How about instead of doing this we make `executor` a lazy/cached
property on base job?
That way it is not loaded until it is first accessed, which might fix the
problem?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]