Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions airflow-core/src/airflow/dag_processing/dagbag.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ def _validate_executor_fields(dag: DAG, bundle_name: str | None = None) -> None:
f"Task '{task.task_id}' specifies executor '{task.executor}', which is not available "
f"for team '{dag_team_name}' (the team associated with DAG '{dag.dag_id}') or as a global executor. "
f"Make sure '{task.executor}' is configured for team '{dag_team_name}' or globally in your "
"[core] executors configuration, or update the task's executor to use one of the "
"[core] executor configuration, or update the task's executor to use one of the "
f"configured executors for team '{dag_team_name}' or available global executors."
)
raise UnknownExecutorException(
f"Task '{task.task_id}' specifies executor '{task.executor}', which is not available. "
"Make sure it is listed in your [core] executors configuration, or update the task's "
"Make sure it is listed in your [core] executor configuration, or update the task's "
"executor to use one of the configured executors."
)

Expand Down
8 changes: 4 additions & 4 deletions airflow-core/tests/unit/dag_processing/test_dagbag.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def test_executor_validation_failure_with_team(self, mock_lookup, mock_manager_c
"Task 'task1' specifies executor 'invalid.executor', which is not available "
"for team 'test_team' (the team associated with DAG 'test-dag') or as a global executor. "
"Make sure 'invalid.executor' is configured for team 'test_team' or globally in your "
"[core] executors configuration, or update the task's executor to use one of the "
"[core] executor configuration, or update the task's executor to use one of the "
"configured executors for team 'test_team' or available global executors."
),
):
Expand All @@ -204,7 +204,7 @@ def test_executor_validation_failure_no_team(self, mock_lookup):
UnknownExecutorException,
match=re.escape(
"Task 'task1' specifies executor 'invalid.executor', which is not available. "
"Make sure it is listed in your [core] executors configuration, or update the task's "
"Make sure it is listed in your [core] executor configuration, or update the task's "
"executor to use one of the configured executors."
),
):
Expand Down Expand Up @@ -258,7 +258,7 @@ def test_global_executor_fallback_failure(self, mock_lookup, mock_manager_class)
"Task 'task1' specifies executor 'unknown.executor', which is not available "
"for team 'test_team' (the team associated with DAG 'test-dag') or as a global executor. "
"Make sure 'unknown.executor' is configured for team 'test_team' or globally in your "
"[core] executors configuration, or update the task's executor to use one of the "
"[core] executor configuration, or update the task's executor to use one of the "
"configured executors for team 'test_team' or available global executors."
),
):
Expand Down Expand Up @@ -330,7 +330,7 @@ def test_validate_executor_field_executor_not_configured():
UnknownExecutorException,
match=re.escape(
"Task 't1' specifies executor 'test.custom.executor', which is not available. "
"Make sure it is listed in your [core] executors configuration, or update the task's "
"Make sure it is listed in your [core] executor configuration, or update the task's "
"executor to use one of the configured executors."
),
):
Expand Down