ms32035 opened a new issue, #48667:
URL: https://github.com/apache/airflow/issues/48667

   ### Official Helm Chart version
   
   1.16.0 (latest released)
   
   ### Apache Airflow version
   
   2.10.5
   
   ### Kubernetes Version
   
   1.31
   
   ### Helm Chart configuration
   
   _No response_
   
   ### Docker Image customizations
   
   _No response_
   
   ### What happened
   
   I'm afraid that then new multiple executor configuration does not work at 
all.
   In when the scheduler parses the dags tasks are configured with:
   ```
   executor='KubernetesExecutor`
   ```
   but then when a pod is launched an environment variable is injected:
   ```
   AIRFLOW__CORE__EXECUTOR=LocalExecutor
   ```
   which next results in a validation error:
   ```
   │ Traceback (most recent call last):                                         
                                                                                
                                                                                
                                  │
   │   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/models/dag.py", line 
852, in validate_executor_field                                                 
                                                                                
                      │
   │     ExecutorLoader.lookup_executor_name_by_str(task.executor)              
                                                                                
                                                                                
                                  │
   │   File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/executors/executor_loader.py",
 line 215, in lookup_executor_name_by_str                                       
                                                                                
             │
   │     raise UnknownExecutorException(f"Unknown executor being loaded: 
{executor_name_str}")                                                           
                                                                                
                                         │
   │ airflow.exceptions.UnknownExecutorException: Unknown executor being 
loaded: KubernetesExecutor
   ```
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   Configure the chart with `CeleryExecutor,KubernetesExecutor` and run any task
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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

Reply via email to