Content-Length: 347782 | pFad | http://github.com/apache/airflow/pull/50898

3D Bugfix: Logical date isn't populated in Context vars: by kaxil · Pull Request #50898 · apache/airflow · GitHub
Skip to content

Bugfix: Logical date isn't populated in Context vars: #50898

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 21, 2025

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented May 21, 2025

The tests was overusing mocking so the error was hidden!

I found that while migrating ti.run() to Task SDK execution path.


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

The tests was overusing mocking so the error was hidden!

I found that while migrating `ti.run()` to Task SDK execution path.
@kaxil kaxil added this to the Airflow 3.0.2 milestone May 21, 2025
@kaxil kaxil requested a review from jedcunningham May 21, 2025 14:09
@kaxil kaxil requested review from ashb and amoghrajesh as code owners May 21, 2025 14:09
@kaxil kaxil added the backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch label May 21, 2025
@kaxil kaxil merged commit e52e8ac into apache:main May 21, 2025
68 checks passed
@kaxil kaxil deleted the fix-bug-context-vars branch May 21, 2025 14:43
github-actions bot pushed a commit that referenced this pull request May 21, 2025
…0898)

The tests was overusing mocking so the error was hidden!

I found that while migrating `ti.run()` to Task SDK execution path.
(cherry picked from commit e52e8ac)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request May 21, 2025
…ache#50898)

The tests was overusing mocking so the error was hidden!

I found that while migrating `ti.run()` to Task SDK execution path.
(cherry picked from commit e52e8ac)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
kaxil added a commit that referenced this pull request May 21, 2025
…0898)

The tests was overusing mocking so the error was hidden!

I found that while migrating `ti.run()` to Task SDK execution path.
(cherry picked from commit e52e8ac)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request May 21, 2025
The tests was overusing mocking so the error was hidden!

I found that while migrating `ti.run()` to Task SDK execution path.
potiuk pushed a commit that referenced this pull request May 22, 2025
…0898) (#50903)

The tests was overusing mocking so the error was hidden!

I found that while migrating `ti.run()` to Task SDK execution path.
(cherry picked from commit e52e8ac)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
kaxil added a commit to astronomer/airflow that referenced this pull request 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:
- Running `on_kill` on the Task SDK execution path
- Resolving lazy_object_proxies in the Context dict when running with a VirtualEnvOperator
- apache#50898
kaxil added a commit to astronomer/airflow that referenced this pull request 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:
- Running `on_kill` on the Task SDK execution path
- Resolving lazy_object_proxies in the Context dict when running with a VirtualEnvOperator
- apache#50898
kaxil added a commit that referenced this pull request 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:
- Running `on_kill` on the Task SDK execution path
- Resolving lazy_object_proxies in the Context dict when running with a VirtualEnvOperator
- #50898
kaxil added a commit to astronomer/airflow that referenced this pull request 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:
- 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:task-sdk backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/pull/50898

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy