Skip to content

Fix/expose taskinstance api 60478#61568

Draft
Subham-KRLX wants to merge 2 commits intoapache:mainfrom
Subham-KRLX:fix/expose-taskinstance-api-60478
Draft

Fix/expose taskinstance api 60478#61568
Subham-KRLX wants to merge 2 commits intoapache:mainfrom
Subham-KRLX:fix/expose-taskinstance-api-60478

Conversation

@Subham-KRLX
Copy link
Contributor

@Subham-KRLX Subham-KRLX commented Feb 7, 2026

Closes #60478

This PR exposes TaskInstance in the Task SDK public API.

It aliases RuntimeTaskInstanceProtocol to TaskInstance in airflow.sdk.types, and exports it via airflow.sdk so that it is available for import by DAG authors and custom operator developers.

This allows users to use from airflow.sdk import TaskInstance for type hinting, consistent with the public API documentation.

@boring-cyborg boring-cyborg bot added area:dev-tools area:task-sdk backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Feb 7, 2026
@Subham-KRLX Subham-KRLX force-pushed the fix/expose-taskinstance-api-60478 branch from 49620d6 to 7439abc Compare February 7, 2026 04:17
@Subham-KRLX Subham-KRLX force-pushed the fix/expose-taskinstance-api-60478 branch from a28bc45 to 152240c Compare February 7, 2026 04:20
@Subham-KRLX Subham-KRLX marked this pull request as draft February 7, 2026 04:21
@Subham-KRLX Subham-KRLX force-pushed the fix/expose-taskinstance-api-60478 branch from 152240c to 7439abc Compare February 7, 2026 04:22
@Subham-KRLX Subham-KRLX force-pushed the fix/expose-taskinstance-api-60478 branch from f9a7781 to 7c4d7c4 Compare February 7, 2026 04:46
@Subham-KRLX Subham-KRLX force-pushed the fix/expose-taskinstance-api-60478 branch from 9db3f6e to b7e51c8 Compare February 7, 2026 09:38
@Subham-KRLX
Copy link
Contributor Author

I am working on this PR I will fix it soon and mark it ready for review.

@jscheffl
Copy link
Contributor

jscheffl commented Feb 7, 2026

main was broken, note that rebase/merge with main will most likely fix a lot of errors. Fix was just merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:task-sdk backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TaskInstance not defined in public API

2 participants