Skip to content
Edith

Docs

Command reference

ed download retry

Puts a failed or interrupted entry back into the queue.

Usage:

Output
ed download retry <n> [--json]ed download retry --all [--json]

Arguments:

Name Type / values Default What it does
<n> integer, counting from 1 none The download to retry, numbered as ed download ls numbers it. Optional, but required unless --all is passed.

Options:

Name Type / values Default What it does
--all flag off Retries everything that failed or was interrupted.
--json flag off Emits one JSON document on stdout.

Only failed and interrupted entries can be retried; retrying sets them back to queued and leaves everything else alone. Naming an entry in any other state exits 1 and says which state it is in, rather than silently doing nothing. Passing neither a number nor --all also exits 1. --all on a queue with nothing to retry is not an error: it reports 0 and exits 0.

--json shape:

JSON
{  "record": {    "id": "58F41E66-1D3E-4C0C-9D89-63DC3C082D79",    "index": 2,    "state": "queued"  },  "retried": 1}

The record field is present for a numbered retry. --all returns only the count because it can target several records.

Examples:

Output
ed download retry 3ed download retry --alled download retry --all --json
Output
$ ed download retry 1error: download 1 is done, so there is nothing to retry

Behaviour: retry rewrites downloads.json when something changed, and posts downloadQueueChanged either way, so a running Edith picks the work up at once rather than waiting for its next look at the file. Retrying by number resolves the selected persisted record ID, so identical URLs remain independent.

Where to go next