Skip to content

[v3-3-test] Add async asset state store accessors (#72127) - #72851

Merged
vatsrahul1001 merged 1 commit into
apache:v3-3-testfrom
jason810496:backport/72127-v3-3-test
Sep 10, 2026
Merged

vatsrahul1001 merged 1 commit into
apache:v3-3-testfrom
jason810496:backport/72127-v3-3-test

Conversation

@jason810496

Copy link
Copy Markdown
Member

Backport of #72127 to v3-3-test.

Why

Async tasks and watcher triggers need awaitable asset state store accessors so API requests do not block their event loop.

What

  • Backport aget, aset, adelete, and aclear, their tests, and documentation.
  • Resolve the context.py conflict by preserving 3.3's lazy message imports in the shared helpers and moving the shared ToSupervisor annotation import under TYPE_CHECKING.

Validation

  • All 176 tests in task-sdk/tests/task_sdk/execution_time/test_context.py passed in the cached Python 3.10 CI image with this branch's Task SDK, core, shared libraries, and test utilities mounted.
  • prek run --from-ref upstream/v3-3-test --stage pre-commit passed, including Task SDK mypy. Manual hooks had no applicable checks.
  • Fresh Breeze image builds were blocked by Docker Hub timeouts; the tests used the cached image instead. The broader CI suites remain for GitHub Actions.

Inherited backend async limitations are tracked in #72129 and #72131, as in the original PR.


Was generative AI tooling used to co-author this PR?

…pache#72127)

* Add async asset store accessors for async tasks and watcher triggers

* Clarify async asset state accessor docstrings

* Parametrize async asset state accessor tests

(cherry picked from commit 2aa581e)
@jason810496 jason810496 added this to the Airflow 3.3.2 milestone Sep 9, 2026
@vatsrahul1001 vatsrahul1001 added the type:misc/internal Changelog: Misc changes that should appear in change log label Sep 10, 2026
@vatsrahul1001
vatsrahul1001 merged commit 0d03ef4 into apache:v3-3-test Sep 10, 2026
91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:task-sdk kind:documentation type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants