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


##########
airflow-core/src/airflow/assets/manager.py:
##########
@@ -643,14 +645,22 @@ def _queue_partitioned_dags(
                 )
                 continue
 
+            # rerun_policy only applies to rollups (it decides what happens 
when an
+            # upstream key re-arrives after the window already fired). 
Non-rollup
+            # mappers have no such field; ``None`` keeps their legacy behavior.
+            rerun_policy = mapper.rerun_policy if is_rollup(mapper) else None
             for target_key in target_keys:
                 apdr = cls._get_or_create_apdr(
                     target_key=target_key,
                     target_dag=target_dag,
                     rollup_fingerprint=fingerprint,
                     asset_id=asset_id,
+                    rerun_policy=rerun_policy,
                     session=session,
                 )
+                # IGNORE dropped this late event for an already-fired window.

Review Comment:
   Updated comment.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to