mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
separate progress monitoring from live preview, live preview improvements, progress details
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+4
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user