-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Use Task SDK's Context dict in models/taskinstance.py
#45834
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
Conversation
0e774a5 to
4f9ace7
Compare
f6ac4a6 to
995924e
Compare
This PR ports re-uses the Context dict from the Task SDK in `models/taskinstance.py`. Once, CeleryExecutor & KubernetesExecutor are ported over to Task SDK, we can remove all of this code. This PR unifies some of that code.
995924e to
b64b0b2
Compare
amoghrajesh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah changes look good. Can we add TODO in taskinstance.py for the parts that we want to undo once Celery / K8s executors are integrated?
Most of that file we get nuked :) |
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in apache#45834 Follow-up of apache#45834
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in apache#45834 Follow-up of apache#45834
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in apache#45834 Follow-up of apache#45834
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in #45834 Follow-up of #45834
This PR ports re-uses the Context dict from the Task SDK in `models/taskinstance.py`. Once, CeleryExecutor & KubernetesExecutor are ported over to Task SDK, we can remove all of this code. This PR unifies some of that code.
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in apache#45834 Follow-up of apache#45834
This PR ports re-uses the Context dict from the Task SDK in `models/taskinstance.py`. Once, CeleryExecutor & KubernetesExecutor are ported over to Task SDK, we can remove all of this code. This PR unifies some of that code.
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in apache#45834 Follow-up of apache#45834
This PR ports re-uses the Context dict from the Task SDK in `models/taskinstance.py`. Once, CeleryExecutor & KubernetesExecutor are ported over to Task SDK, we can remove all of this code. This PR unifies some of that code.
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in apache#45834 Follow-up of apache#45834
This PR ports re-uses the Context dict from the Task SDK in `models/taskinstance.py`. Once, CeleryExecutor & KubernetesExecutor are ported over to Task SDK, we can remove all of this code. This PR unifies some of that code.
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in apache#45834 Follow-up of apache#45834
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in #45834 Follow-up of apache/airflow#45834 GitOrigin-RevId: 2193be2a5e53760ae00d1b85c825087e995f8eb1
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in #45834 Follow-up of apache/airflow#45834 GitOrigin-RevId: 2193be2a5e53760ae00d1b85c825087e995f8eb1
Some test failures like https://github.com/apache/airflow/actions/runs/12903540392/job/35979200770?pr=45865 were not caught in #45834 Follow-up of apache/airflow#45834 GitOrigin-RevId: 2193be2a5e53760ae00d1b85c825087e995f8eb1
This PR re-uses the Context dict from the Task SDK in
models/taskinstance.py.Once, CeleryExecutor & KubernetesExecutor are ported over to Task SDK, we can remove all of this code. This PR unifies some of that code.
This also uncovered flawed logic where a Task/TI is in running state but DagRun is in Queued or None state!!!
^ 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.rstor{issue_number}.significant.rst, in newsfragments.