Skip to content

Commit ab794d2

Browse files
authored
Update entities.py
1 parent 6d2bd4b commit ab794d2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎app/models/entities.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ class Run(Base):
115115
events: Mapped[list] = mapped_column(JSON, default=list)
116116
error: Mapped[str] = mapped_column(Text, default="")
117117
harness_run_id: Mapped[str] = mapped_column(String(64), default="")
118+
# The web instance that owns this run's in-process worker thread.
119+
# Set while running so a restart reconciles only its OWN orphaned
120+
# runs (never another live instance's) -- see
121+
# Controller.reconcile_orphaned_runs. Null once finished.
122+
owner_instance: Mapped[str | None] = mapped_column(String(64), nullable=True, index=True)
118123
exit_code: Mapped[int | None] = mapped_column(Integer, nullable=True)
119124
cancelled: Mapped[bool] = mapped_column(Boolean, default=False)
120125
duration_ms: Mapped[int] = mapped_column(Integer, default=0)

0 commit comments

Comments
 (0)