Replies: 1 comment
|
Update — since I opened this, the building blocks landed, so I'll answer my own questions and link the Q1 (covered by asset partitions in 3.2+?) Partially. Asset partitioning — Q2 (does a task-level readiness sensor fit Airflow's direction?) Looks like yes — it's being Q3 (standard provider, core, or just a doc pattern?) Standard provider. The sensor and its trigger Q4 (matching semantics?) Event-existence, with an optional time bound. Waiting on "any event with Two implementations are in progress, both on top of #64610:
They overlap heavily and will likely converge into one; tracking both here so anyone following this Drafted-by: Claude Code (Opus 4.8); reviewed by @Leondon9 before posting |
Uh oh!
There was an error while loading. Please reload this page.
I am looking for guidance before attempting an implementation.
In time-scheduled DW/DataLake DAGs,
data_interval_startanddata_interval_endare often still the primary processing contract. Asset-triggered DAGs are useful, but switching a heavy batch consumer toschedule=[Asset(...)]changes the run semantics because asset-triggered runs intentionally do not have a logical date or data interval.The use case I am trying to model is:
@dailyorders / dt=2026-05-21ExternalTaskSensor(execution_date_fn=...)Today I can solve this with provider-specific sensors, such as S3, Hive, BigQuery, or Databricks partition sensors, or with
ExternalTaskSensor. But I could not find an Airflow-native task-level way to wait for anAssetEvent/ asset partition recorded in Airflow metadata.A concrete shape might look like this:
The intended semantics would be:
asset + partition_keydata_interval_start/data_interval_endThis is not intended to replace asset-triggered scheduling, and I am not proposing to derive
data_intervalfor asset-triggered DAG runs. I am trying to clarify whether there is room for a time-scheduled DAG to wait on asset partition readiness as a task-level dependency.This seems related to the problem discussed in #55489, where users need a common date/partition concept across scheduled, triggered, and asset-aware workflows. The maintainer comments there also point toward asset partitions /
dag_run.partition_keyas the more general direction.Questions:
If this direction makes sense, I would be interested in helping with a small scoped follow-up, likely starting with docs or a design issue before any implementation PR.
All reactions