mr jobs summary export
Queue a filtered summary export for an explicit RFC3339 range longer than 90
days. The server applies the same visibility rules and filters as interactive
summary, then publishes a typed artifact on the accepted Job. The artifact
expires according to the server's export-retention setting. Read the Job with
jobs get to inspect its output and commands.
The accepted Job is titled with the range by day ("Job summary, 2025-01-01 to
2026-01-01") and its summary lists the filter, in the list API's parameter
names. The file says the same before its figures: the CSV starts with range
rows (from, to) and one filter row per filter value, and the JSON has
from, to and a filter object, which is empty when nothing was filtered.
The accepted Job is owned by the submitting account. Filtering by another owner or actor does not grant access to that person's Jobs.
An export cannot filter by --state partial, --inbound-relationship or
--no-inbound-relationship; the server refuses those with a 400. The export's
filter is stored and run later, possibly by a worker from an older release.
Such a worker fails an export filtered by the partial state, but it silently
ignores the inbound relationship filters and exports a wider summary. Use
jobs summary for those filters over a window of up to 90 days.
Usage
mr jobs summary export
Examples
Queue a CSV export for a year of remote downloads
mr jobs summary export --from 2025-01-01T00:00:00Z --to 2026-01-01T00:00:00Z --kind remote-download --format csv
Queue a JSON export with an owner filter
mr jobs summary export --from 2024-01-01T00:00:00Z --to 2026-01-01T00:00:00Z --format json --owner-id 7
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--state | stringSlice | [] | Filter by Job state (repeatable) |
--kind | stringSlice | [] | Filter by Job kind (repeatable) |
--origin | stringSlice | [] | Filter by submission origin (repeatable) |
--owner-id | uint | 0 | Filter by owner user ID |
--actor-id | uint | 0 | Filter by acting user ID |
--accepted-after | string | `` | Include Jobs accepted at or after RFC3339 time |
--accepted-before | string | `` | Include Jobs accepted at or before RFC3339 time |
--relationship | string | `` | Filter by visible lineage relationship |
--inbound-relationship | string | `` | Filter Jobs a visible Job links to with this relationship (retried, repeated, or child stage) |
--no-inbound-relationship | string | `` | Filter Jobs no visible Job links to with this relationship (for example, not yet retried) |
--search | string | `` | Search visible Job text and output labels |
--command | string | `` | Filter Jobs currently advertising this command key |
--pinned | string | `` | Filter this viewer's pin preference (true, false or any) |
--dismissed | string | `` | Filter this viewer's dismissal preference (true, false or any) |
--from | string | `` | Inclusive start time in RFC3339 form (required) (required) |
--to | string | `` | Inclusive end time in RFC3339 form (required) (required) |
--format | string | json | Artifact format: csv or json |
Inherited global flags
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | false | Output raw JSON |
--no-header | bool | false | Omit table headers |
--page | int | 1 | Page number for list commands (default page size: 50) |
--quiet | bool | false | Only output IDs |
--server | string | http://localhost:8181 | mahresources server URL (env: MAHRESOURCES_URL) |
Output
Accepted summary-export Job snapshot
Exit Codes
0 on success; 1 on any error