turbaszek commented on a change in pull request #18189:
URL: https://github.com/apache/airflow/pull/18189#discussion_r706860315
##########
File path: airflow/executors/executor_loader.py
##########
@@ -77,14 +77,36 @@ def load_executor(cls, executor_name: str) -> BaseExecutor:
"""
if executor_name == CELERY_KUBERNETES_EXECUTOR:
return cls.__load_celery_kubernetes_executor()
+ try:
+ executor_cls, import_source =
cls.import_executor_cls(executor_name)
+ log.debug(
+ "Loading executor %s from %s", executor_name,
import_source.replace("custom", "custom path")
+ )
+ except ImportError as e:
+ log.error(e)
+ raise AirflowConfigException(
+ f'The module/attribute could not be loaded. Please check
"executor" key in "core" section. '
Review comment:
```suggestion
f'The custom executor could not be loaded. Please check
"executor" key in "core" section. '
```
~WDYT? I think it would be more detailed~ I see that we just move this part
of code
--
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]