Skip to main content

mr job resume

Restart a previously paused download job. <id> is the Job id jobs list prints, or the legacy handle job submit returns as id. Resume only works against a paused download; a Job that is queued, running, finished, or cancelled returns an error. The server opens a fresh HTTP request and queues the Job again; the transfer starts when the deployment's job budget has room.

Because the server does not keep partial bytes across pauses, resume effectively restarts the download from the beginning.

One URL is transferred once at a time. If another download of the same URL is fetching when this one would start again, a download the Job Center records waits in the queue until that transfer ends; one it does not record is refused with HTTP 409 and stays paused.

Usage​

mr job resume <id>

Positional arguments:

  • <id>

Examples​

Resume a specific paused download

mr job resume 018f4db1-9b40-7f54-8f16-37a449bcf01d

Resume every visible Job that currently offers resume

mr jobs list --command resume --json | jq -r '.jobs[].id' | xargs -I {} mr job resume {}

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 status set to "resumed" and canonicalJobId naming the resumed Job

Exit Codes​

0 on success; 1 on any error

See Also​