Repository navigation
v0.14.0
Fixed
- A test proved the wrong thing intermittently, failing about half of CI's runs on
master.TestAPageIsFetchedAgainOnlyWhenAskedasserted that an ordinary enqueue
does not re-fetch a page the archive already has — through the job queue, where
fetches are unique per article across every non-terminal state. Proving the worker
declined therefore required the previous fetch to be finished first, and a stored
body does not show that: extraction is enqueued by the last statement of the fetch's
own work, before it returns, so the extract job can run to completion while the
fetch job is stillrunning. The insert was refused as a duplicate and the test
said so rather than passing on it. The refusal is now proved by calling the worker
directly, which needs no timing at all; the queue keeps the half it is good for.
Added
-
tome refetch <id>...does from a command what the failed-fetch queue's button
does per row. A repair is rarely one article: a site whose image URLs expired takes
every article from that site with it, and a domain flagged for a browser after the
fact takes everything fetched before the flag. Reports by default and queues only
with--yes, because every article costs one request to somebody else's server. -
tome prunecollects the residue unsubscribing leaves: articles no feed
references and nobody has acted on. Retention cannot reach them — it only ever
expires articles that were read, so one that arrived, was never opened, and then
lost its feed is never expirable at any setting — and unsubscribing deliberately
deletes no articles, because re-subscribing relinks them by canonical URL. So
nothing had ever collected them.It releases bodies, exactly as retention does, rather than deleting article
rows: the archive keeps knowing the article existed. Anything read, starred, saved,
or imported is never a candidate, and an imported body is refused for the reason
retention refuses it — it may be the only surviving copy of a page that is gone.Reports by default and acts only with
--yes— the opposite convention to
reextract --dry-run, deliberately: re-extracting is free and reversible, while
this releases bytes that would have to be fetched again. It reports the bytes rather
than only the count, because "prune 812 articles" is not a decision anybody can take
and "recover 140 MB" is.
Image
ghcr.io/runlevel-six/tomekeeper:v0.14.0
ghcr.io/runlevel-six/tomekeeper@sha256:de9dc4cd7f096853d3e0665c970c0a55156f8aa3efae652d0f4da1b1b7ecaf5a