渲染机看门狗按分辨率放宽 + 静默检测;开单后台 Windows 下禁止双开

Browse Source
- ys_worker: 总时长上限随分辨率放宽(1000→600s,4096→~84min),另加 900s 无输出判卡死;
  超时时把 Blender 最后几行输出写进日志。修复空艇 4096 每次在第 10 分钟被误杀(订单 YSPPVNXQ)。
- ys_worker: 读输出改为按字节 read1 + 增量解码,文本模式 read(512) 会攒满才返回。
- ys_local: 本机单同样按分辨率给上限。
- ys_admin: Windows 上关闭 SO_REUSEADDR —— 否则再双击会起第二个实例绑同一端口(宿主机实测复现)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yws
2026-10-07 02:43:04 +00:00
co-authored by Claude Opus 5.5
parent cb7cd3649b
commit bc8402ca67
3 changed files with 59 additions and 17 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ def run_job(job_id):
"--template", tpl, "--skin", skin, "--template", tpl, "--skin", skin,
"--orders-dir", root, "--out-dir", d, "--res", str(res)] "--orders-dir", root, "--out-dir", d, "--res", str(res)]
W.log("[本机单] 渲染 %s → %s(%d px)" % (fname, os.path.basename(d), res)) W.log("[本机单] 渲染 %s → %s(%d px)" % (fname, os.path.basename(d), res))
okr, tail, dt, note = W.run_blender(cmd) okr, tail, dt, note = W.run_blender(cmd, timeout=W.blender_timeout(res))
if not okr: if not okr:
j["errors"].append("%s:%s" % (fname, note)) j["errors"].append("%s:%s" % (fname, note))
continue continue