MarketDeck docs

jobs

Local registry and process control for long-running MarketDeck tasks.

marketdeck jobs tracks long-running work such as reports, backtests, sweeps, agent runs, exports, and diagnostics. Jobs have stable ids, status, optional PIDs, command argv, stdout/stderr log paths, and timestamps.

Usage#

marketdeck jobs <list|show|run|start|cancel|logs|record|remove|clear> [flags]
SubcommandWhat it does
listShow recent registry entries.
show <id>Show one job with argv, cwd, PID, exit state, and log paths.
run -- <argv...>Run a command in the foreground and record stdout/stderr logs.
start -- <argv...>Start a background job and return immediately with the job id.
cancel <id>Send a signal to a running background job.
logs <id>Print stdout or stderr logs, optionally following new lines.
recordAdd an externally-managed job entry.
remove <id>Delete one registry entry.
clearDelete entries, optionally by status.
FlagApplies toWhat it does
--name Nrun, start, recordHuman-readable job name.
--type Trun, start, recordJob type such as report, backtest, or agent.
--cwd PATHrun, startWorking directory for the process.
--status Slist, record, clearFilter or set job status.
--limit NlistMaximum rows to return.
--signal SIGTERMcancelSignal sent to the job runner.
--stderrlogsRead stderr instead of stdout.
--tail NlogsReturn the last N lines.
--followlogsKeep streaming log output.

Examples#

marketdeck jobs start --name daily-report --type report -- marketdeck reports daily --out daily.json
marketdeck jobs list --status running --format json
marketdeck jobs show job-abc123 --format json
marketdeck jobs logs job-abc123 --tail 100
marketdeck jobs logs job-abc123 --stderr --follow
marketdeck jobs cancel job-abc123

Background jobs are supervised by a small CLI runner that records completion status and log sizes after the child process exits. This keeps the registry useful for terminal users, WebUI, GNOME, and automation without adding a daemon RPC surface.