Snapshot before the quality program (relevance gates, tiered mapping, QA linter). v1 is the immutable before/after reference; evidence crawl was at ~175/3039 occupations when tagged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PDKeXvpT6tENSvyQGLV1Uq
22 lines
691 B
Python
22 lines
691 B
Python
"""Set every occupation with package=='done' back to 'failed'.
|
|
|
|
batch_run.stage_packages treats 'failed' + existing manifest.json as a
|
|
push-only retry (no regeneration) — the standard mechanism to re-publish
|
|
the whole catalog after content changes (e.g. p5 AI-skill enrichment).
|
|
Run ONLY while no batch_run loop is active (progress.json is not locked).
|
|
"""
|
|
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.dirname(__file__))
|
|
import progress
|
|
|
|
state = progress.load()
|
|
n = 0
|
|
for slug, s in state["occupations"].items():
|
|
if s.get("package") == "done":
|
|
s["package"] = "failed"
|
|
n += 1
|
|
progress.save(state)
|
|
print(f"reset {n} occupations from done -> failed (re-push queued)")
|