MarketDeck docs
maintenance
Daemon-side prune + log probe scheduler — set the interval and the retention windows once, let the daemon run them.
marketdeck maintenance configures the daemon's recurring housekeeping loop: a periodic prune across analyses / reviews / backtests / notifications / http-log, plus log probes that surface disk-bound state to the UI.
Usage#
marketdeck maintenance <subcommand> [args]
Subcommands#
| Subcommand | What it does |
|---|---|
status | Daemon maintenance state + last-run result. |
run [--dry-run] | Trigger one pass right now. Requires the daemon. |
config | Show the current config file. |
config set KEY=VAL | Update one key (e.g. enabled=false, interval_hours=12). |
config path | Print the config file path. |
Examples#
marketdeck maintenance status --format text
marketdeck maintenance run --dry-run --format text
marketdeck maintenance config --format text
marketdeck maintenance config set interval_hours=12
Where the config lives#
~/.config/marketdeck/maintenance.json
Typical keys:
| Key | What it does |
|---|---|
enabled | Master toggle for the loop. |
interval_hours | How often the loop runs. |
analyses_keep_days | Retention for marketdeck prune analyses. |
reviews_keep_days | Retention for marketdeck prune reviews. |
backtests_keep_days | Retention for marketdeck prune backtests. |
notifications_keep_days | Retention for marketdeck prune notifications. |
http_log_keep_days | Retention for marketdeck prune http-log. |
Reload#
The daemon re-reads the config on start. To change interval or prune age on the fly:
marketdeck maintenance config set interval_hours=12
marketdeck daemon stop
marketdeck daemon start --background