server: a video job logs every denoise step and reports the step tally

A waiting client had only job.progress (the steps' share of 0..90) and no
pace, so a long render looked like a hang. The job's thread now emits one
RAD_INFO per STEP -- step N/M, mean s/step and an eta, measured from the
first step's arrival on the steady clock so queue and encode time do not
inflate it -- and the video object carries steps_done/steps_total while it
runs (absent until the first step lands, so a queued object is unchanged).
The rate is a mean across the job; a latent upscale's small steps are
quicker than its refine steps, so the eta is a mean's guess -- the
completion line's breakdown stays exact. videos_test asserts the tally
reaches the finished object (the fake generator lands two steps).
This commit is contained in:
gearwave00001 committed 2026-10-24 11:14:33 -05:00
1 parent f7c349075c
commit a14ea5abad
2 files changed
+32

No files matched your search

+4
View File
@@ -380,6 +380,10 @@ TEST(a_video_job_completes_and_serves_its_file) {
SKIP("this build has no libavcodec to write the MP4 with");
REQUIRE_EQ(str_at(o, "status"), std::string("completed"));
CHECK_EQ(o["progress"].get<int>(), 100);
/* The step tally rides in the object (the fake generator lands 2 steps): a waiting client
* reads steps_done/steps_total while in_progress, and they survive into the finished object. */
CHECK_EQ(o["steps_done"].get<int>(), 2);
CHECK_EQ(o["steps_total"].get<int>(), 2);
CHECK(o["completed_at"].is_number());
CHECK(o["expires_at"].get<int64_t>() > o["completed_at"].get<int64_t>());
CHECK(o["error"].is_null());