ramziash commented on code in PR #74583:
URL: https://github.com/apache/airflow/pull/74583#discussion_r4693122852
##########
airflow-core/src/airflow/assets/manager.py:
##########
@@ -762,6 +783,40 @@ def _get_or_create_apdr(
target_dag.dag_id,
exc_info=True,
)
+
+ if (
+ refire_policy is not None
+ and latest_apdr is not None
+ and latest_apdr.created_dag_run_id is not None
+ ):
+ prior_logs = session.scalars(
+ select(PartitionedAssetKeyLog).where(
+ PartitionedAssetKeyLog.asset_partition_dag_run_id ==
latest_apdr.id,
+ PartitionedAssetKeyLog.asset_id != asset_id,
Review Comment:
Good catch, with a rollup mapper that would leave the new APDR stuck
forever. It now only skips the exact (asset_id, source_partition_key) being
replaced and copies everything else. The rollup case in the test fails with the
old filter.
--
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]