[PRISM] Block HTTP 502 sources; errors 105 to 19
lint / hygiene (push) Failing after 30s
standard / check (push) Successful in 12s
lint / hygiene (pull_request) Failing after 24s
standard / check (pull_request) Successful in 10s

This commit is contained in:
architect committed 2026-11-29 22:53:21 +03:00
1 parent fafe6b6e5d
commit 1eb2b4307f
4 files changed
+14 -9

No files matched your search

@@ -462,7 +462,7 @@ HA после RAM, не раньше.
9 final → 44 draft_ready
2596 specs
4608 evidence
pending 96 / running 2 / errors 98
pending 66 / running 2 / errors 19 / blocked 105
```
Очередь не «0 навсегда»: новые note_audit дают 13 сетевых/парных ошибок; 2 ошибки, 1 pending, 1 running.
@@ -254,10 +254,11 @@ pending 0
final_cards 44 draft_ready
models 451
sources 299 (+80 Yealink sitemap)
pending 96
pending 66
running 2
errors 98 (no JSON object / source)
specs 2596 → 2625
errors 19
blocked 105 (HTTP 502/no JSON/empty source)
specs 2596 → 2656
```
Сеть: LAN 11434 с хоста не отвечает; Tailscale `100.64.0.2:11434` — HTTP 200.
+4 -3
View File
@@ -122,10 +122,11 @@ OLLAMA_URL=http://100.64.0.2:11434
После этого:
```text
pending: 249 → 96
pending: 249 → 66
running: 2
errors: 98 (no JSON object / source)
specs: 2596 → 2625
errors: 105 → 19
blocked: 105 (HTTP 502/no JSON/empty source)
specs: 2596 → 2656
```
Pending падает, но errors растут: часть источников не даёт JSON.
+5 -2
View File
@@ -145,8 +145,11 @@ while True:
cur.execute("update prism.tasks set status='done', finished_at=now() where id=%s", (task_id,))
print("done", task_id, kind, flush=True)
except Exception as e:
cur.execute("update prism.tasks set status='error', error=%s, finished_at=now() where id=%s",
(str(e)[:300], task_id))
msg = str(e)[:300]
bad = any(x in msg.lower() for x in ("no json", "empty text", "source missing", "no text", "no usable", "http error"))
status = "blocked" if bad else "error"
cur.execute("update prism.tasks set status=%s, error=%s, finished_at=now() where id=%s",
(status, msg, task_id))
cur.execute("""insert into prism.runs(model_id,kind,status,worker,model,error,started_at,finished_at)
values (%s,'worker7b','error','229',%s,%s,now(),now())""",
(mid, "qwen2.5:3b", str(e)[:300]))