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

Update taskinstance clear endpoint to support mapped tasks #45349

Conversation

vatsrahul1001
Copy link
Collaborator

@vatsrahul1001 vatsrahul1001 commented Jan 2, 2025

closes: #44867

^ 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. area:webserver Webserver related Issues labels Jan 2, 2025
@vatsrahul1001 vatsrahul1001 marked this pull request as draft January 2, 2025 12:59
@vatsrahul1001 vatsrahul1001 added the legacy api Whether legacy API changes should be allowed in PR label Jan 2, 2025
@jscheffl jscheffl added the legacy ui Whether legacy UI change should be allowed in PR label Jan 2, 2025
@jscheffl
Copy link
Contributor

jscheffl commented Jan 2, 2025

I you plan to update the API, this one (connexion) is the legacy one which will be dropped in Airflow 3. Can you please also change the fast_api which will be the future/Airflow 3 API backend?

As this change is on connexion API, is this to be back-ported to Airflow 2.10 as well? Then it should be classified as a bug, as we actually do not plan to have new features on Airflow 2.10

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.

I you plan to update the API, this one (connexion) is the legacy one which will be dropped in Airflow 3. Can you please also change the fast_api which will be the future/Airflow 3 API backend?

+1

As this change is on connexion API, is this to be back-ported to Airflow 2.10 as well? Then it should be classified as a bug, as we actually do not plan to have new features on Airflow 2.10

I think this one is really an improvement/feature. I would be for simply not releasing this in 2.x at all. Features are for 3.0, and just do the change in the fastapi API.

@vatsrahul1001
Copy link
Collaborator Author

+1 @pierrejeambrun @jscheffl . I agree as its a new feature/Improvement this should only go to FastAPI. I will update this for only FastAPI.

I think this one is really an improvement/feature. I would be for simply not releasing this in 2.x at all. Features are for 3.0, and just do the change in the fastapi API.

…instance-clear-endpoint-to-support-mapped-tasks
…instance-clear-endpoint-to-support-mapped-tasks
…sks' of github.com:astronomer/airflow into update-taskinstance-clear-endpoint-to-support-mapped-tasks
@vatsrahul1001 vatsrahul1001 marked this pull request as ready for review January 7, 2025 10:41
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.

Nice thanks. A few things to update before we can merge.

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.

Nice. Looks good. A few more suggestions.

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.

Nice, minor nit, needs rebase.

@pierrejeambrun pierrejeambrun merged commit 2b46b8f into apache:main Jan 27, 2025
45 checks passed
@pierrejeambrun pierrejeambrun deleted the update-taskinstance-clear-endpoint-to-support-mapped-tasks branch January 27, 2025 11:35
josix pushed a commit to josix/airflow that referenced this pull request Jan 27, 2025
)

* support mapped task in taskinstance clear

* update-taskinstance-clear-endpoint-to-support-mapped-tasks

* adding tests

* adding tests

* fix test

* resolving conflicts

* update typing and format of request

* add new tests + fix useClearTaskInstances.ts

* add comment
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
)

* support mapped task in taskinstance clear

* update-taskinstance-clear-endpoint-to-support-mapped-tasks

* adding tests

* adding tests

* fix test

* resolving conflicts

* update typing and format of request

* add new tests + fix useClearTaskInstances.ts

* add comment
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Jan 30, 2025
)

* support mapped task in taskinstance clear

* update-taskinstance-clear-endpoint-to-support-mapped-tasks

* adding tests

* adding tests

* fix test

* resolving conflicts

* update typing and format of request

* add new tests + fix useClearTaskInstances.ts

* add comment
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
)

* support mapped task in taskinstance clear

* update-taskinstance-clear-endpoint-to-support-mapped-tasks

* adding tests

* adding tests

* fix test

* resolving conflicts

* update typing and format of request

* add new tests + fix useClearTaskInstances.ts

* add comment
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
)

* support mapped task in taskinstance clear

* update-taskinstance-clear-endpoint-to-support-mapped-tasks

* adding tests

* adding tests

* fix test

* resolving conflicts

* update typing and format of request

* add new tests + fix useClearTaskInstances.ts

* add comment
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. area:webserver Webserver related Issues legacy api Whether legacy API changes should be allowed in PR legacy ui Whether legacy UI change should be allowed in PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update taskinstance clear endpoint to support mapped tasks
4 participants