You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2026/06/08 04:30:36 UTC
Re: [PR] Let partitioned Dag runs fire on a partial upstream window with wait_policy [airflow]
uranusjr commented on code in PR #66848:
URL: https://github.com/apache/airflow/pull/66848#discussion_r3370845479
##########
airflow-core/src/airflow/partition_mappers/base.py:
##########
@@ -104,15 +106,23 @@ class RollupMapper(PartitionMapper):
"""
Partition mapper that rolls up many upstream keys into one downstream key.
- Compose a ``upstream_mapper`` (which normalizes each upstream key to the
+ Compose an ``upstream_mapper`` (which normalizes each upstream key to the
downstream granularity) with a ``window`` that declares the full set of
- upstream keys required for a given downstream key. The scheduler holds
- the Dag run until every upstream key in the window has arrived.
+ upstream keys required for a given downstream key, and a
+ ``wait_policy`` that decides when the downstream Dag run fires given
+ the expected window and the upstream keys that have actually arrived.
+ The default policy waits for every expected upstream key.
"""
is_rollup: ClassVar[bool] = True
- def __init__(self, *, upstream_mapper: PartitionMapper, window: Window) -> None:
+ def __init__(
+ self,
+ *,
+ upstream_mapper: PartitionMapper,
+ window: Window,
+ wait_policy: WaitPolicy = WaitForAll(), # noqa: B008
Review Comment:
Why does this need noqa?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org