Skip to main content

mr jobs list

Return a snapshot of every job the server is currently tracking, including pending, running, paused, finished, and failed ones. The response is a single object whose jobs key is an array ordered by submission time. Each entry exposes enough detail to drive CLI dashboards, pause/resume decisions, or cleanup scripts.

The queue lives in server memory; a restart empties it. Pagination is not supported — the full list is returned in one response.

Usage

mr jobs list

Examples

Show every job (human-readable)

mr jobs list

Filter to still-running jobs and pull just their URLs

mr jobs list --json | jq -r '.jobs[] | select(.status == "downloading" or .status == "pending") | .url'

Flags

This command has no local flags.

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output

Object with a jobs array; each entry has id, url, status, progress, totalSize, progressPercent, createdAt, and optional error, startedAt, completedAt, resourceId, source

Exit Codes

0 on success; 1 on any error

See Also