aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'webmentions_ssg/models.py')
-rw-r--r--webmentions_ssg/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/webmentions_ssg/models.py b/webmentions_ssg/models.py
index 0dfbb78..31516d5 100644
--- a/webmentions_ssg/models.py
+++ b/webmentions_ssg/models.py
@@ -121,6 +121,11 @@ class ReceivedWebmention(Base):
return value
status: Mapped[str] = mapped_column(Text(), nullable=False, default="received")
+ # Counts stale-row requeues, not Huey's bounded in-task retries. A fresh
+ # explicit submission resets this counter.
+ recovery_attempts: Mapped[int] = mapped_column(
+ Integer, nullable=False, default=0, server_default="0"
+ )
failure_reason: Mapped[str | None] = mapped_column(
Text(), nullable=True, default=None
)