Skip to content
Merged
Changes from all commits
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
3 changes: 3 additions & 0 deletions airflow/models/taskinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,11 @@ def _set_ti_attrs(target, source, include_dag_run=False):
target.trigger_id = source.trigger_id
target.next_method = source.next_method
target.next_kwargs = source.next_kwargs
# These checks are required to make sure that note and rendered_map_index are not
# reset during refresh_from_db as DB still contains None values and would reset the fields
if source.note and isinstance(source, TaskInstancePydantic):
target.note = source.note
if source.rendered_map_index and isinstance(source, TaskInstancePydantic):
target.rendered_map_index = source.rendered_map_index

if include_dag_run:
Expand Down
Loading