Repository navigation
Preserve custom operator defaults in mapped tasks - #72589
Merged
vatsrahul1001 merged 6 commits intoSep 9, 2026
Merged
Conversation
eitan-shalev
marked this pull request as ready for review
September 6, 2026 13:25
eitan-shalev
requested review from
amoghrajesh,
ashb and
kaxil
as code owners
September 6, 2026 13:25
uranusjr
reviewed
Sep 9, 2026
uranusjr
approved these changes
Sep 9, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
vatsrahul1001
added a commit
that referenced
this pull request
Sep 10, 2026
#72828) * Preserve custom operator defaults in mapped tasks * Preserve mapping defaults for custom operators * Apply suggestion from @uranusjr --------- (cherry picked from commit c2c8dce) Co-authored-by: Eitan Shalev <[email protected]> Co-authored-by: Tzu-ping Chung <[email protected]> Co-authored-by: Rahul Vats <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
BaseOperator.partial()fills known BaseOperator arguments from framework defaults. If a custom operator overrides the signature default of one of those arguments, mapping currently materializes the framework default and then passes it into the operator during unmapping. That changes the behavior relative to direct task construction.Resolve defaulted BaseOperator arguments from the concrete operator signature before creating
partial_kwargs. Explicit.partial()values and DAG/task default args retain their existing precedence.Adds a regression test using
retry_policy, which is the newly exposed instance of this longstanding behavior.Closes: #72588
Validation
Was generative AI tooling used to co-author this PR?
Generated-by: Codex following the guidelines