You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add async task store accessors (aget/aset) for use in async tasks #68214
Airflow 3.2 added async @task support, and 3.3 added resumable tasks with task_store.get/set for checkpointing. These two features are currently independent, ie async tasks can't use task store for crash recovery because get/set are synchronous and would block the event loop.
What to do?
Add async counterparts await task_store.aget(key) and await task_store.aset(key, value) on TaskStoreAccessor, wired to an async method on BaseStoreBackend and its db backend implementation.
This would enable stateful async tasks e.g. an async task paginating through an API that can checkpoint after each page and resume after a crash without restarting from page 1.
Acceptance criteria
TaskStoreAccessor exposes aget and aset
BaseStoreBackend defines abstract aget/aset
MetastoreStoreBackend implements them using an async DB session
Async @task examples in docs updated to show the pattern
Committer
I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Activity
amoghrajesh commentedon Jun 8, 2026
cc @dabla @jason810496