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

Migrate health info to fastapi #42938

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

bbovenzi
Copy link
Contributor

Migrate /health to fastapi public api under a monitor router

Closes #42937

Part of #42370


^ 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 newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Oct 11, 2024
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Looking nice.

Ideally we could add a test. I know they are a little bit more complicated because you need some jobs to be created. A good compromise could be to simply mock the get_airflow_health() with dummy results and check that the route returns what is expected.

@pierrejeambrun pierrejeambrun added the legacy api Whether legacy API changes should be allowed in PR label Oct 11, 2024
@bbovenzi bbovenzi merged commit f708fc9 into apache:main Oct 15, 2024
51 checks passed
@bbovenzi bbovenzi deleted the fastapi-add-health-info branch October 15, 2024 19:05
R7L208 pushed a commit to R7L208/airflow that referenced this pull request Oct 17, 2024
* Add health info to public fastapi

* Add test and fix TaskInstanceState name
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:UI Related to UI/UX. For Frontend Developers. legacy api Whether legacy API changes should be allowed in PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AIP-84 Migrate public get Health info to FastAPI
3 participants