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 2021/06/29 14:26:49 UTC

[GitHub] [airflow] jedcunningham commented on a change in pull request #16700: Fix ``CeleryKubernetesExecutor``

jedcunningham commented on a change in pull request #16700:
URL: https://github.com/apache/airflow/pull/16700#discussion_r660671207



##########
File path: airflow/jobs/base_job.py
##########
@@ -104,6 +108,10 @@ def __init__(self, executor=None, heartrate=None, *args, **kwargs):
         self.max_tis_per_query = conf.getint('scheduler', 'max_tis_per_query')
         super().__init__(*args, **kwargs)
 
+    @cached_property
+    def executor(self):
+        return  ExecutorLoader.get_default_executor()

Review comment:
       ```suggestion
           return ExecutorLoader.get_default_executor()
   ```
   nit




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org