Taragolis commented on code in PR #39430:
URL: https://github.com/apache/airflow/pull/39430#discussion_r1609740023
##########
airflow/models/taskinstance.py:
##########
@@ -1367,6 +1367,11 @@ class TaskInstance(Base, LoggingMixin):
trigger = relationship("Trigger", uselist=False,
back_populates="task_instance")
triggerer_job = association_proxy("trigger", "triggerer_job")
+ queued_by_job = relationship(
+ "Job",
+ back_populates="task_instances_enqueued",
+ primaryjoin="Job.id == foreign(TaskInstance.queued_by_job_id)",
Review Comment:
> it was removed from backref at the other end?
TBH it the other way round, references right now setup in the both way.
> I think we should have uselist=False
Maybe it should be setup `uselist=False` in both way if it one-to-one
relationship
--
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]