mark_failed

Function mark_failed 

Source
pub(crate) async fn mark_failed(
    pool: &PgPool,
    id: i64,
    error: &str,
) -> Result<(), Error>
Expand description

Marks a stream as permanently failed.

Sets upload_status = 'failed' and records the error message. Called when the upload processor decides not to retry (e.g., max attempts exceeded or a non-retryable HTTP status).

ยงErrors

Returns sqlx::Error on query failure.