dheerajturaga opened a new issue, #48042: URL: https://github.com/apache/airflow/issues/48042
### What do you see as an issue? Under https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/executor/index.html#using-multiple-executors-concurrently When setting the executor in the Airflow configuration file (airflow.cfg), using executor='LocalExecutor,CeleryExecutor' causes a failure, while using executor = LocalExecutor,CeleryExecutor works correctly. ``` Traceback (most recent call last): File "airflow/2.10.5/venv/lib/python3.11/site-packages/airflow/utils/module_loading.py", line 35, in import_string module_path, class_name = dotted_path.rsplit(".", 1) ^^^^^^^^^^^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ``` This issue arises due to the way Python interprets strings and variables. In the configuration file: ``` executor = 'LocalExecutor' # treats LocalExecutor as a string. executor = LocalExecutor # treats LocalExecutor as a variable or class. ``` ### Solving the problem **Solution:** Ensure that you set the executor without quotes to avoid treating it as a string. The correct configuration should be: ``` [core] executor = LocalExecutor,CeleryExecutor ``` ### Anything else _No response_ ### Are you willing to submit PR? - [x] 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]
