Skip to content

Add audit log if target dag partition mapper is wrong#62509

Open
Lee-W wants to merge 4 commits intoapache:mainfrom
astronomer:add-audit-log-if-target-dag-partition-mapper-is-wrong
Open

Add audit log if target dag partition mapper is wrong#62509
Lee-W wants to merge 4 commits intoapache:mainfrom
astronomer:add-audit-log-if-target-dag-partition-mapper-is-wrong

Conversation

@Lee-W
Copy link
Member

@Lee-W Lee-W commented Feb 26, 2026

Why

If a target partitioned Dag has a partition mapper that cannot map a partition key correctly (e.g., map "abc" through HourlyMapper), it raises an exception in the scheduler which makes sense but not obvious to user.

What

Add AuditLog to the source partitioned Dag if the target partitioned Dag has a partition mapper that cannot map a partition key correctly (e.g., map "abc" through HourlyMapper)


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Feb 26, 2026
@Lee-W Lee-W force-pushed the add-audit-log-if-target-dag-partition-mapper-is-wrong branch from f3e41fb to 2fe2499 Compare February 26, 2026 13:28
@Lee-W Lee-W marked this pull request as ready for review February 26, 2026 13:30
Lee-W added 4 commits March 2, 2026 09:03
…by target Dag partition_mapper

Thighs needs to be logged in the source Dag since the target Dag won't have task instance created

Also revert changes in apache#59375, it does not work.
…not be mapped by target Dag partition_mapper
…ey can not be mapped by target Dag partition_mapper
@Lee-W Lee-W force-pushed the add-audit-log-if-target-dag-partition-mapper-is-wrong branch from 2fe2499 to 90073be Compare March 2, 2026 00:24
@Lee-W Lee-W requested a review from uranusjr March 2, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant