From f6d96df2c3aecb51ca97426efddb101dce6350d7 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 30 Oct 2026 13:24:53 +0100 Subject: feat(sender): add persistent retry backoff Persist retry state per source revision so temporary delivery failures survive worker restarts and duplicate queued tasks cannot bypass the retry schedule. Use capped exponential backoff, stop after a configurable attempt limit, and reset the retry budget when a source changes or an admin resends manually. --- tests/cli/test_database.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/cli') diff --git a/tests/cli/test_database.py b/tests/cli/test_database.py index 51b79ac..f25aade 100644 --- a/tests/cli/test_database.py +++ b/tests/cli/test_database.py @@ -80,8 +80,11 @@ def test_create_db_builds_schema_and_records_latest_migration( assert _database_revision(database_app) == _head_revision(database_app) with database_app.app_context(): - table_names = set(inspect(DATABASE.engine).get_table_names()) + inspector = inspect(DATABASE.engine) + table_names = set(inspector.get_table_names()) + columns = {column["name"] for column in inspector.get_columns("sent_webmentions")} assert {"alembic_version", "users", "received_webmentions"} <= table_names + assert {"attempt_count", "next_retry_at"} <= columns def test_create_db_refuses_existing_database_without_modifying_it( -- cgit v1.3.1