You're offline — showing cached data

Prune old task_runs from mc.db

mc-prune-task-runs
2026-06-13 06:11:41 SAST
← Back to Tasks

OVERRIDES runtime profile: uses direct_python (plain Python, no model) because the command chain never invokes the claude CLI or any LLM API — pure-infra task; scheduler provider env injection is a no-op (MC-4942 U12 sweep).

Nightly pruning of task_runs in mc.db. Keeps only the last 7 days. Prevents unbounded growth of the operational log (MC-3073).

Daily at 04:000 4 * * *
Yes
shell
60s
No
in 22h (2026-06-14 04:00)

Task Definition

tasks/mc-prune-task-runs.md
shell
set
No
No
python3 /home/lucienne/workspace/PKA/scripts/prune_task_runs.py

Edit Schedule

Result:
8
Runs (7d)
8
Completed
0
Failed
0
Timeout
100%
Success (7d)
4s
Avg Duration
infrastructure mission-control cleanup

Run History (8)

StartedFinishedStatusDurationOutputLog
2h ago 2h ago completed 3s
Vacuuming database... Pruned task_runs: 36932 -> 31056 (deleted 5876)
View log
1d ago 1d ago completed 4s
Vacuuming database... Pruned task_runs: 38087 -> 32766 (deleted 5321)
View log
2d ago 2d ago completed 3s
Vacuuming database... Pruned task_runs: 39451 -> 33732 (deleted 5719)
View log
3d ago 3d ago completed 4s
Vacuuming database... Pruned task_runs: 41129 -> 35174 (deleted 5955)
View log
4d ago 4d ago completed 4s
Vacuuming database... Pruned task_runs: 43612 -> 36893 (deleted 6719)
View log
5d ago 5d ago completed 4s
Vacuuming database... Pruned task_runs: 45914 -> 39519 (deleted 6395)
View log
6d ago 6d ago completed 3s
Vacuuming database... Pruned task_runs: 47549 -> 41494 (deleted 6055)
View log
7d ago 7d ago completed 4s
Vacuuming database... Pruned task_runs: 51622 -> 42829 (deleted 8793)
View log

Comments (0)

No comments yet — add instructions for Luci
Help