separate progress monitoring from live preview, live preview improvements, progress details

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-08-07 11:41:40 +02:00
parent b092cf7318
commit 48cf0166f3
12 changed files with 238 additions and 146 deletions
+4 -1
View File
@@ -48,6 +48,8 @@ class ProgressRequest(BaseModel):
class InternalProgressResponse(BaseModel):
job: str = Field(default=None, title="Job name", description="Internal job name")
job_timestamp: str|None = Field(default=None, title="Job timestamp", description="Timestamp of the job start")
job_time: float|None = Field(default=None, title="Job start time", description="Time of the job start")
textinfo: str|None = Field(default=None, title="Info text", description="Info text used by WebUI.")
# status fields
active: bool = Field(title="Whether the task is being worked on right now")
@@ -122,7 +124,8 @@ def api_progress(req: ProgressRequest):
steps=steps,
batch_no=batch_no,
batch_count=batch_count,
job_timestamp=shared.state.time_start,
job_timestamp=shared.state.job_timestamp,
job_time=shared.state.time_start,
eta=eta,
live_preview=live_preview,
id_live_preview=id_live_preview,