add batch_id to history task items

This commit is contained in:
bymyself
2025-06-21 16:45:50 -07:00
parent 38fefde06d
commit 35d98dcea8
3 changed files with 24 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: openapi.yaml
# timestamp: 2025-06-21T23:28:48+00:00
# timestamp: 2025-06-21T23:40:24+00:00
from __future__ import annotations
@@ -476,6 +476,12 @@ class TaskHistoryItem(BaseModel):
timestamp: datetime = Field(..., description="ISO timestamp when task completed")
result: str = Field(..., description="Task result message or details")
status: Optional[TaskExecutionStatus] = None
batch_id: Optional[str] = Field(
None, description="ID of the batch this task belongs to"
)
end_time: Optional[datetime] = Field(
None, description="ISO timestamp when task execution ended"
)
class TaskStateMessage(BaseModel):