davlum commented on a change in pull request #7168: [AIRFLOW-6561] Add 
possibility to specify default resources for airfl…
URL: https://github.com/apache/airflow/pull/7168#discussion_r370363281
 
 

 ##########
 File path: airflow/executors/kubernetes_executor.py
 ##########
 @@ -110,6 +110,12 @@ def __init__(self):  # pylint: disable=too-many-statements
         self.worker_run_as_user = self._get_security_context_val('run_as_user')
         self.worker_fs_group = self._get_security_context_val('fs_group')
 
+        kube_worker_resources = conf.get(self.kubernetes_section, 
'worker_resources')
+        if kube_worker_resources:
+            self.worker_resources = json.loads(kube_worker_resources)
+        else:
+            self.worker_resources = None
 
 Review comment:
   ```suggestion
           kube_worker_resources = conf.get(self.kubernetes_section, 
'worker_resources', fallback=None)
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to