pub fn mark_failed( conn: &Connection, pending_id: i64, error: &str, ) -> Result<(), AppError>
Marks as failed with an error message.
failed