dimberman commented on issue #9860:
URL: https://github.com/apache/airflow/issues/9860#issuecomment-696849349


   Hi @appunni-dishq 
   
   I think you defined your executor_config incorrectly.
   
   The entire thing is a dict, so you need to write it like this:
   
   ```
   executor_config = {
       "KubernetesExecutor": {
           "request_memory": "500Mi",
           "limit_memory": "500Mi",
           "limit_cpu": "200m",
           "request_cpu": "200m",
           "node_selectors": {"env": "production"},
           "volumes": [gke_crt_volume],
           "volume_mounts": [gke_crt_volume_mount],
       }
   }
   ```
   
   instead of
   ```
   executor_config = {
       "KubernetesExecutor": {
           "request_memory": "500Mi",
           "limit_memory": "500Mi",
           "limit_cpu": "200m",
           "request_cpu": "200m",
           "node_selectors": {
               "env": "production"
           },
           volumes=[gke_crt_volume],
           volume_mounts=[gke_crt_volume_mount]
       }
   }
   ```


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


Reply via email to