Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Dec 12, 2024

Part of #44481

This commit augments the TI context available in the Task Execution Interface with the one from the Execution API Server.

In future PRs the following will be added:

  • More methods on TI like ti.xcom_pull, ti.xcom_push etc
  • Lazy fetching of connections, variables
  • Verifying the "get_current_context" is working
    f3ea195

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

@kaxil kaxil force-pushed the task-context-api-server branch 2 times, most recently from c751760 to ef7be4c Compare December 13, 2024 12:00
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

Yeah looks like a good approach

@kaxil kaxil force-pushed the task-context-api-server branch 5 times, most recently from 2170af7 to f3ea195 Compare December 16, 2024 11:25
@kaxil kaxil marked this pull request as ready for review December 16, 2024 11:26
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

A few nits/questions in comments to address, but LGTM

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.

Looks generally good, few comments/qns

Part of apache#44481

This commit augments the TI context available in the Task Execution Interface with the one from the Execution API Server.

In future PRs the following will be added:

- More methods on TI like ti.xcom_pull, ti.xcom_push etc
- Lazy fetching of connections, variables
- Verifying the "get_current_context" is working
@kaxil kaxil force-pushed the task-context-api-server branch from f3ea195 to 06ae46d Compare December 16, 2024 15:28
@kaxil kaxil merged commit dbff6e3 into apache:main Dec 16, 2024
50 checks passed
@kaxil kaxil deleted the task-context-api-server branch December 16, 2024 16:11
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
Part of apache#44481

This commit augments the TI context available in the Task Execution Interface with the one from the Execution API Server.

In future PRs the following will be added:

- More methods on TI like ti.xcom_pull, ti.xcom_push etc
- Lazy fetching of connections, variables
- Verifying the "get_current_context" is working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants