Skip to content

[v3-0-test] Port ti.run to Task SDK execution path (#50141) #50980

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented May 22, 2025

This is the last thing to remove the parallel execution path.

For simplicity, ti.run and ti._run_raw_task have been retained, but they now use the Task SDK execution path. They have been retained so we don't have to make big bang changes in tests and PR remains relatively review-able. There are opportunities for evaluating & cleanup after this PR is merged:

  • get_template_context,
  • handle_failure,
  • check_and_change_state_before_execution
  • and probably a lot more.

The following bugs/missing features were identified and implemented:

(cherry picked from commit f1ca1d1)


^ 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 airflow-core/newsfragments.

This is the last thing to remove the parallel execution path.

For simplicity, `ti.run` and `ti._run_raw_task` have been retained, but they now use the Task SDK execution path. They have been retained so we don't have to make big bang changes in tests and PR remains relatively review-able. There are opportunities for evaluating & cleanup after this PR is merged:
- `get_template_context`,
- `handle_failure`,
- `check_and_change_state_before_execution`
- and probably a lot more.

The following bugs/missing features were identified and implemented:
- Running `on_kill` on the Task SDK execution path
- Resolving lazy_object_proxies in the Context dict when running with a VirtualEnvOperator
- apache#50898

(cherry picked from commit f1ca1d1)
@kaxil kaxil changed the title Port ti.run to Task SDK execution path (#50141) [v3-0-test] Port ti.run to Task SDK execution path (#50141) May 22, 2025
@potiuk
Copy link
Member

potiuk commented May 22, 2025

#protm :
image

@kaxil kaxil merged commit 19f7b14 into apache:v3-0-test May 22, 2025
81 checks passed
@kaxil kaxil deleted the backport-ti-run branch May 22, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy