Skip to main content

bump_feed_errors

Function bump_feed_errors 

Source
pub async fn bump_feed_errors(
    pool: &SqlitePool,
    url: &str,
    kind: FailureKind,
    detail: &str,
) -> Result<i64>
Expand description

Record a poll FAILURE for a feed: bump its consecutive_errors by one and return the NEW count. The count drives the exponential poll backoff, so a persistently-failing feed spaces its retries out toward the ceiling instead of hammering the 5-minute floor forever. Reset to 0 by reset_feed_errors on any success/304.