Skip to content

Fix backward compatibility for workloads.TaskInstance import#62714

Merged
kaxil merged 1 commit intoapache:mainfrom
astronomer:fix/workloads-taskinstance-backcompat
Mar 2, 2026
Merged

Fix backward compatibility for workloads.TaskInstance import#62714
kaxil merged 1 commit intoapache:mainfrom
astronomer:fix/workloads-taskinstance-backcompat

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Mar 2, 2026

Re-export TaskInstance from airflow.executors.workloads as an alias to TaskInstanceDTO so integrations using the old import path continue to work. Add a regression test that verifies the alias remains available.

This broke in #61153


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Re-export TaskInstance from airflow.executors.workloads as an alias to TaskInstanceDTO so integrations using the legacy import path continue to work. Add a regression test that verifies the alias remains available.
@boring-cyborg boring-cyborg bot added the area:Executors-core LocalExecutor & SequentialExecutor label Mar 2, 2026
@kaxil kaxil changed the title Fix backward compatibility for workloads TaskInstance import Fix backward compatibility for workloads.TaskInstance import Mar 2, 2026
@kaxil kaxil added this to the Airflow 3.2.0 milestone Mar 2, 2026
@kaxil kaxil merged commit f42ffbc into apache:main Mar 2, 2026
72 checks passed
@kaxil kaxil deleted the fix/workloads-taskinstance-backcompat branch March 2, 2026 17:09
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
…62714)

Re-export TaskInstance from airflow.executors.workloads as an alias to TaskInstanceDTO so integrations using the legacy import path continue to work. Add a regression test that verifies the alias remains available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Executors-core LocalExecutor & SequentialExecutor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants