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/07/01 09:15:35 UTC

Re: [PR] Add rerun policy for rollups when an upstream partition is re-run [airflow]

uranusjr commented on code in PR #68778:
URL: https://github.com/apache/airflow/pull/68778#discussion_r3504664935


##########
airflow-core/src/airflow/partition_mappers/base.py:
##########
@@ -37,6 +38,12 @@ class PartitionMapper(ABC):
     """
 
     is_rollup: ClassVar[bool] = False
+    #: Rerun handling does not apply to a non-rollup mapper, so the base default
+    #: is ``RerunPolicy.NONE``. :class:`RollupMapper` sets it per instance, so the
+    #: scheduler can read ``mapper.rerun_policy`` uniformly without a rollup
+    #: type-check. (An instance attribute with a class default, not a ClassVar, so
+    #: RollupMapper can assign to it.)

Review Comment:
   What is special about the `#:` comment prefix? I don’t think we use this pattern anywhere else.



-- 
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