jedcunningham commented on code in PR #40441:
URL: https://github.com/apache/airflow/pull/40441#discussion_r1678436182
##########
airflow/models/taskinstancehistory.py:
##########
@@ -45,8 +47,50 @@ class TaskInstanceHistory(Base):
run_id = Column(StringID(), nullable=False)
map_index = Column(Integer, nullable=False, server_default=text("-1"))
try_number = Column(Integer, nullable=False)
+ # TODO: duplicate TI table in TIhistory and use pre-commit hook to keep
both in sync.
+ trigger_id = Column(Integer)
# The rest of the columns are kept in sync with TaskInstance, added at the
bottom of this file
+ dag_run = relationship(
Review Comment:
RTIF is the deciding factor I think. I don't want to imply that it's from
the specific try. I think having the history endpoint return a subset of the
data back, namely just thing that can actually vary by try, is reasonable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]