Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating dag run endpoint to 404 if requested dag is inactive #29860

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

SamWheating
Copy link
Contributor

closes: #29839

The create dagrun API endpoint wasn't properly checking that a DAG was active and thus a user could try to trigger a DAG which had been removed from Airflow, which would throw a 500 because the DAG couldn't be loaded from the dagbag.

Updating this endpoint to look for active DAGs only.

Validated that this works as expected in breeze.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Mar 2, 2023
@eladkal eladkal added this to the Airflow 2.5.2 milestone Mar 3, 2023
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Mar 3, 2023
@eladkal eladkal merged commit 751a995 into apache:main Mar 3, 2023
pierrejeambrun pushed a commit that referenced this pull request Mar 7, 2023
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
(cherry picked from commit 751a995)
pierrejeambrun pushed a commit that referenced this pull request Mar 8, 2023
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
(cherry picked from commit 751a995)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API type:bug-fix Changelog: Bug Fixes
Projects
None yet
4 participants