Skip to content

Migrate health info to fastapi#42938

Merged
bbovenzi merged 2 commits intoapache:mainfrom
astronomer:fastapi-add-health-info
Oct 15, 2024
Merged

Migrate health info to fastapi#42938
bbovenzi merged 2 commits intoapache:mainfrom
astronomer:fastapi-add-health-info

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 force-pushed the fastapi-add-health-info branch from a7c767d to f946047 Compare October 15, 2024 17:44
@bbovenzi bbovenzi merged commit f708fc9 into apache:main Oct 15, 2024
@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
harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
* Add health info to public fastapi

* Add test and fix TaskInstanceState name
PaulKobow7536 pushed a commit to PaulKobow7536/airflow that referenced this pull request Oct 24, 2024
* Add health info to public fastapi

* Add test and fix TaskInstanceState name
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 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

Comments