Back
Home
Board
Work
Overview
Board
Tasks
Team
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).
Task Definition
tasks/mc-prune-task-runs.md
Save Definition
Runtime profile
(inherit scheduler default)
claude_anthropic
claude_sonnet_medium
claude_opus_medium
claude_opus_1m_medium
claude_opus_1m_high
claude_glm
claude_kimi
claude_minimax
kimi_cli
codex
gemini_cli
glm_api
kimi_api
minimax_api
openai_api
direct_gemini
direct_anthropic_sdk
direct_mixed
direct_python
direct_shell
direct_no_llm
direct
direct_spotify
grok_on_sub
Notify destination
(default — script-defined)
Elmar DM
Elmar DM: F1 topic
Forum: General
Forum: Home
Forum: Life Manager
Forum: Work
Forum: Mission Control
Forum: Research
Forum: Trading
Forum: Trading
Forum: Scraper
python3 /home/lucienne/workspace/PKA/scripts/prune_task_runs.py
Edit Schedule
×
Frequency
Every Minute
Every N Minutes
Hourly
Every N Hours
Daily
Weekdays
Weekly
Monthly
Custom (cron)
Every N minutes
Day of Week
Sunday Monday Tuesday
Wednesday Thursday Friday Saturday
Day of Month
Result:
Cancel
Save
infrastructure
mission-control
cleanup
Run Now
Run History (8)
All
Failed
Completed
Timeout
Started Finished Status Duration Output Log
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)
←