Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit f0d5a7775036913987bce4b6cc14d325b081abbe
parent a6619014db783757d4efbd16c288a4e0cb841cb2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 12 Nov 2026 09:52:51 -0500

umtool: cast assign --model follows the editor's job at a fixed pace -- no environment variable of its own (every variable the code reads is declared in common/lib/envVars.ts, and this one need not be)

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mumtool/lib/report/castAssignModel.mjs | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/umtool/lib/report/castAssignModel.mjs b/umtool/lib/report/castAssignModel.mjs @@ -14,7 +14,8 @@ import { mergeModelProposal } from "umtool-report-to-video/cast-assign"; export const CAST_ASSIGN_TASK = "cast-assign"; /** The editor task's answers file (common lib/report/draft/tasks/castAssign.ts CAST_ASSIGN_FILE). */ export const CAST_ASSIGN_FILE = "narration/cast-assign.json"; -const POLL_MS = () => (Number(process.env.UMTOOL_CAST_ASSIGN_POLL_MS) > 0 ? Number(process.env.UMTOOL_CAST_ASSIGN_POLL_MS) : 2000); +/** How often the editor's job is asked about. */ +const POLL_MS = 2000; /** How long a job is followed before giving up (the job keeps running in the editor). */ const FOLLOW_MS = 30 * 60 * 1000; const RESULT_MARKER = "@@report-draft "; @@ -74,7 +75,7 @@ export async function askEditorCastAssign(project, handles, { env = process.env, if (job.status !== said) emit(`job ${jobId}: ${(said = String(job.status))}`); if (["done", "failed", "cancelled"].includes(job.status)) break; } - await sleep(POLL_MS()); + await sleep(POLL_MS); } if (!job || !["done", "failed", "cancelled"].includes(job.status)) throw new Error(`the editor's job ${jobId} did not end in time (it may still be running: pnpm ops job ${jobId})`); const markerLine = [...tail].reverse().find((l) => l.includes(RESULT_MARKER));