feat: type-scope events vacuum to prune only stream rows (14d) + drop turn-stats vacuum
This commit is contained in:
parent
f8cf76b62d
commit
6e39515669
9 changed files with 50 additions and 99 deletions
|
|
@ -14,7 +14,7 @@ use hive_c0re::coordinator::Coordinator;
|
|||
use hive_c0re::{
|
||||
agent_sockets, auto_update, bash_tasks_vacuum, broker, client, crash_watch, dashboard,
|
||||
dashboard_events, events_vacuum, forge, knowledge, manager_server, matrix, migrate,
|
||||
rebuild_queue, reminder_scheduler, scheduled_prompts_worker, server, stats_vacuum,
|
||||
rebuild_queue, reminder_scheduler, scheduled_prompts_worker, server,
|
||||
};
|
||||
|
||||
#[derive(Parser)]
|
||||
|
|
@ -364,9 +364,9 @@ async fn cmd_serve(
|
|||
// Per-agent events.sqlite vacuum: host-side so the harness
|
||||
// doesn't need any retention wiring of its own.
|
||||
events_vacuum::spawn(&coord);
|
||||
// Per-agent turn-stats.sqlite vacuum: same pattern, 90-day
|
||||
// retention so trend analysis has enough history.
|
||||
stats_vacuum::spawn(&coord);
|
||||
// (turn-stats.sqlite has no vacuum — it's one tiny row per turn,
|
||||
// ~hundreds of KB, and the /stats + hive-stats views read it
|
||||
// directly; pruning it would just lose trend history for no gain.)
|
||||
// Per-agent bash-tasks file vacuum: host-side so the harness
|
||||
// cannot disable it. Deletes terminal task trios older than 48h.
|
||||
bash_tasks_vacuum::spawn(&coord);
|
||||
|
|
|
|||
Loading…
Reference in a new issue