Skip to content

Handle ValueError for trigger_dag_run API request#67601

Open
MaksYermak wants to merge 1 commit into
apache:mainfrom
VladaZakharova:handle-value-error-for-trigger-dag-run-request
Open

Handle ValueError for trigger_dag_run API request#67601
MaksYermak wants to merge 1 commit into
apache:mainfrom
VladaZakharova:handle-value-error-for-trigger-dag-run-request

Conversation

@MaksYermak
Copy link
Copy Markdown
Contributor

In this PR I have added a code which handle ValueError exception for trigger_dag_run API request and raise HTTPException with 400 http code. These changes improve error messaging from this request and user can see clear message in task logs.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:task-sdk labels May 27, 2026
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 area:task-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant