Skip to main content

Module article_failure

Module article_failure 

Source
Expand description

Typed failure taxonomy for article downloads.

Replaces the previous String-typed ProgressUpdate::ArticleFailed { error }. Carrying a structured ArticleFailureKind lets the queue manager, hopeless tracker, and circuit breaker each react to what failed without parsing free-form messages — and lets future per-server retry policy be expressed in code rather than in regex.

Classification happens at the emit site (the worker that observed the failure), where the original NntpError is still typed. By the time the failure crosses the progress channel, it has been reduced to one of the kinds below plus an opaque message for human-readable logs.

Structs§

ArticleFailure
A classified article failure ready to flow through the progress channel.

Enums§

ArticleFailureKind
Why an article failed. Drives retry decisions, hopeless tracking, and circuit-breaker logic.