Skip to content

Configuring SequentialExecutor results in very non-obvious error #48765

@dstandish

Description

@dstandish

Body

If sequential executor is configured, an unhelpful error is emitted

It should make it clear that SequentialExecutor is disabled.

Maybe it should even "upgrade" to local executor?

[2025-04-03T12:43:19.920-0700] {cli_parser.py:68} ERROR - Failed to load CLI commands from executor: ::SequentialExecutor
Traceback (most recent call last):
  File "/Users/dstandish/code/airflow/airflow-core/src/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)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/dstandish/code/airflow/airflow-core/src/airflow/cli/cli_parser.py", line 65, in <module>
    executor, _ = ExecutorLoader.import_executor_cls(executor_name)
  File "/Users/dstandish/code/airflow/airflow-core/src/airflow/executors/executor_loader.py", line 291, in import_executor_cls
    return import_string(executor_name.module_path), executor_name.connector_source
  File "/Users/dstandish/code/airflow/airflow-core/src/airflow/utils/module_loading.py", line 37, in import_string
    raise ImportError(f"{dotted_path} doesn't look like a module path")
ImportError: SequentialExecutor doesn't look like a module path
[2025-04-03T12:43:19.926-0700] {cli_parser.py:69} ERROR - Ensure all dependencies are met and try again. If using a Celery based executor install a 3.3.0+ version of the Celery provider. If using a Kubernetes executor, install a 7.4.0+ version of the CNCF provider
[2025-04-03T12:43:21.132-0700] {db.py:1282} INFO - Connection successful.
Image

To repro, set AIRFLOW__CORE__EXECUTOR=SequentialExecutor and run airflow db check

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Labels

area:Executors-coreLocalExecutor & SequentialExecutorkind:bugThis is a clearly a bugkind:metaHigh-level information important to the community

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions