Add tasks.workflow_run_id index (#946)

This commit is contained in:
Kerem Yilmaz
2024-10-09 09:55:47 -07:00
committed by GitHub
parent 202fad8d9b
commit 6cf20221e6
2 changed files with 30 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ class TaskModel(Base):
failure_reason = Column(String)
proxy_location = Column(Enum(ProxyLocation))
extracted_information_schema = Column(JSON)
workflow_run_id = Column(String, ForeignKey("workflow_runs.workflow_run_id"))
workflow_run_id = Column(String, ForeignKey("workflow_runs.workflow_run_id"), index=True)
order = Column(Integer, nullable=True)
retry = Column(Integer, nullable=True)
error_code_mapping = Column(JSON, nullable=True)