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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/webmentions_ssg/models.py b/webmentions_ssg/models.py
index 11740a8..4f688e5 100644
--- a/webmentions_ssg/models.py
+++ b/webmentions_ssg/models.py
@@ -245,6 +245,14 @@ class SentWebmention(Base):
)
status_url: Mapped[str | None] = mapped_column(Text(), nullable=True, default=None)
+ # Retry state belongs to the desired revision, not to the target forever.
+ attempt_count: Mapped[int] = mapped_column(
+ Integer(), nullable=False, default=0
+ )
+ next_retry_at: Mapped[datetime | None] = mapped_column(
+ DateTime(timezone=True), nullable=True, default=None
+ )
+
last_attempted_at: Mapped[datetime | None] = mapped_column(
DateTime(timezone=True), nullable=True, default=None
)