feat(retention): implement Piece 2 job archival, CLI wiring, and rotation driver
This commit is contained in:
@@ -22,6 +22,7 @@ fail=0
|
||||
"$BIN/retention-rotate-chat-history.sh" || fail=1
|
||||
"$BIN/retention-rotate-job-log.sh" || fail=1
|
||||
"$BIN/retention-archive-followups.py" || fail=1
|
||||
"$BIN/retention-archive-jobs.py" scan || fail=1
|
||||
|
||||
echo "--- verification ---"
|
||||
|
||||
@@ -40,6 +41,7 @@ done
|
||||
|
||||
echo "--- live sizes after run ---"
|
||||
ls -la "$ROOT/logs/chat-history.jsonl" "$ROOT/job-log.jsonl" "$ROOT/followups.json" 2>/dev/null || true
|
||||
echo "active jobs: $(ls -1 "$ROOT/jobs"/*.json 2>/dev/null | wc -l), archived jobs: $(ls -1 "$ROOT/jobs/archive"/*.json 2>/dev/null | wc -l)"
|
||||
|
||||
echo "=== retention-run done rc=$fail ==="
|
||||
exit $fail
|
||||
|
||||
Reference in New Issue
Block a user