Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added task_instance_mutation_hook for mapped operator index 0 #42661

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions airflow/models/abstractoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ def expand_mapped_task(self, run_id: str, *, session: Session) -> tuple[Sequence
unmapped_ti.map_index = 0
self.log.debug("Updated in place to become %s", unmapped_ti)
all_expanded_tis.append(unmapped_ti)
task_instance_mutation_hook(unmapped_ti)
jscheffl marked this conversation as resolved.
Show resolved Hide resolved
session.flush()
else:
self.log.debug("Deleting the original task instance: %s", unmapped_ti)
Expand Down