Skip to content

Verify team existence on Execution loading#55806

Merged
o-nikolas merged 1 commit into
apache:mainfrom
aws-mwaa:onikolas/executor_loader_verify_team_existance
Sep 22, 2025
Merged

Verify team existence on Execution loading#55806
o-nikolas merged 1 commit into
apache:mainfrom
aws-mwaa:onikolas/executor_loader_verify_team_existance

Conversation

@o-nikolas

Copy link
Copy Markdown
Contributor

If bad configuration was provided (user tried to configure an executor for a team that does not exist) then throw an exception and do not allow execution loading to complete (and Airflow Scheduler to start).


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg Bot added the area:Executors-core LocalExecutor & SequentialExecutor label Sep 17, 2025
@o-nikolas o-nikolas added the multi-team - aip-67 Issues related to multi-team (AIP-67) label Sep 17, 2025
@o-nikolas

Copy link
Copy Markdown
Contributor Author

CC @vincbeck @ramitkataria

Comment thread airflow-core/src/airflow/executors/executor_loader.py Outdated
Comment thread airflow-core/src/airflow/executors/executor_loader.py Outdated
Comment thread airflow-core/src/airflow/executors/executor_loader.py Outdated

@ramitkataria ramitkataria left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor suggestion but otherwise looks good!

Comment thread airflow-core/tests/unit/models/test_team.py
If bad configuration was provided (user tried to configure an executor
for a team that does not exist) then throw an exception and do not allow
execution loading to complete (and Airflow Scheduler to start).
@o-nikolas o-nikolas force-pushed the onikolas/executor_loader_verify_team_existance branch from 446e574 to 8219b79 Compare September 22, 2025 18:08
@o-nikolas o-nikolas merged commit 4b0a33e into apache:main Sep 22, 2025
60 checks passed
@o-nikolas o-nikolas deleted the onikolas/executor_loader_verify_team_existance branch September 22, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Executors-core LocalExecutor & SequentialExecutor multi-team - aip-67 Issues related to multi-team (AIP-67)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants