Skip to main content

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​

FlagTypeDefaultDescription
--statestringSlice[]Filter by Job state (repeatable)
--kindstringSlice[]Filter by Job kind (repeatable)
--originstringSlice[]Filter by submission origin (repeatable)
--owner-iduint0Filter by owner user ID
--actor-iduint0Filter by acting user ID
--accepted-afterstring``Include Jobs accepted at or after RFC3339 time
--accepted-beforestring``Include Jobs accepted at or before RFC3339 time
--relationshipstring``Filter by visible lineage relationship
--inbound-relationshipstring``Filter Jobs a visible Job links to with this relationship (retried, repeated, or child stage)
--no-inbound-relationshipstring``Filter Jobs no visible Job links to with this relationship (for example, not yet retried)
--searchstring``Search visible Job text and output labels
--commandstring``Filter Jobs currently advertising this command key
--pinnedstring``Filter this viewer's pin preference (true, false or any)
--dismissedstring``Filter this viewer's dismissal preference (true, false or any)
--fromstring``Inclusive start time in RFC3339 form (required) (required)
--tostring``Inclusive end time in RFC3339 form (required) (required)
--formatstringjsonArtifact format: csv or json

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​

Accepted summary-export Job snapshot

Exit Codes​

0 on success; 1 on any error

See Also​