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

Do not call runtime-checks api from the task sdk anymore #48125

Merged
merged 8 commits into from
Mar 26, 2025

Conversation

prabhusneha
Copy link
Contributor

Closes: #47988

This PR removes the /task_instances/{uuid}/runtime-checks API and as its consumption.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:task-sdk labels Mar 23, 2025
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Just 2 minor comments, looks good. Could you verify one thing though, that the API call isn't sent from the task runner anymore?

@prabhusneha prabhusneha force-pushed the remove_runtime_checks_api branch 2 times, most recently from be0246d to 326f598 Compare March 25, 2025 06:51
@prabhusneha prabhusneha force-pushed the remove_runtime_checks_api branch from 326f598 to f8ed470 Compare March 25, 2025 06:59
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Changes look good, lets wait for the CI

@ashb
Copy link
Member

ashb commented Mar 25, 2025

I'd like to check how Cadwyn handles this versioning before we merge please

@amoghrajesh
Copy link
Contributor

Good call!

How do we test that since its an internal api?

prabhusneha and others added 2 commits March 26, 2025 19:54
…versions

Although right now we don't have any API clients calling the previous version
since we aren't released yet and could have simply deleted the endpoint
outright, this is a good opportunity to use this as a practice run for API
versioning
@ashb
Copy link
Member

ashb commented Mar 26, 2025

@kaxil @amoghrajesh @pierrejeambrun Anyone else interested in the API versioning: please take a look at the second commit in this PR: 97d16b9

Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

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

re: Versioning

Reviewed, it will take some getting used too -- but look sane.

@kaxil
Copy link
Member

kaxil commented Mar 26, 2025

@kaxil @amoghrajesh @pierrejeambrun Anyone else interested in the API versioning: please take a look at the second commit in this PR: 97d16b9

I am curious to see how things change, if an existing datamodel or its field changes and stuff. Nothing new for them -- but curious how it would look :)

@ashb ashb merged commit d34b434 into apache:main Mar 26, 2025
89 checks passed
@ashb ashb deleted the remove_runtime_checks_api branch March 26, 2025 16:27
pankajkoti pushed a commit to astronomer/airflow that referenced this pull request Mar 28, 2025
We'd already removed any meaningfull checks in this endpoint in a previous PR

Although right now we don't have any API clients calling the previous version
since we aren't released yet and could have simply deleted the endpoint
outright, this is a good opportunity to use this as a practice run for API
versioning

---------

Co-authored-by: Sneha Prabhu <[email protected]>
Co-authored-by: Ash Berlin-Taylor <[email protected]>
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.

Do not call runtime-checks api from the task sdk anymore
4 participants