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#

SubcommandWhat it does
statusDaemon maintenance state + last-run result.
run [--dry-run]Trigger one pass right now. Requires the daemon.
configShow the current config file.
config set KEY=VALUpdate one key (e.g. enabled=false, interval_hours=12).
config pathPrint 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:

KeyWhat it does
enabledMaster toggle for the loop.
interval_hoursHow often the loop runs.
analyses_keep_daysRetention for marketdeck prune analyses.
reviews_keep_daysRetention for marketdeck prune reviews.
backtests_keep_daysRetention for marketdeck prune backtests.
notifications_keep_daysRetention for marketdeck prune notifications.
http_log_keep_daysRetention 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