Ebook processing retries corrupt or unsupported files 3 times #22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From Nye's review of #17 (F2).
ProcessWorkerreturns{:error, reason}for corrupt or unsupported files, so Oban retries the job 3 times and re-hashes the file every time. These errors aren't transient.Fix: return
{:cancel, reason}(after marking the ebook failed) for non-transient errors such as parse failures and unsupported formats; keep{:error, _}for transient ones (DB, file temporarily unreadable).