Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ def ti_run(
xcom_query = xcom_query.where(XComModel.map_index == map_index)

xcom_keys = list(session.scalars(xcom_query))
# Preserve extra link XCom keys across retries. Extra links are backed
# by XCom rows with keys starting with "_link_", and clearing them on
# retry would lose the per-attempt links for earlier attempts.
xcom_keys = [k for k in xcom_keys if not k.startswith("_link_")]
task_reschedule_count = (
session.scalar(
select(func.count(TaskReschedule.id)).where(TaskReschedule.ti_id == task_instance_id)
Expand Down