diff options
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/tasks/sender.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webmentions_ssg/tasks/sender.py b/webmentions_ssg/tasks/sender.py index a9db128..3803463 100644 --- a/webmentions_ssg/tasks/sender.py +++ b/webmentions_ssg/tasks/sender.py @@ -33,8 +33,7 @@ from .discovery import ( def attempt_is_current(webmention: SentWebmention, revision: int) -> bool: - """ - Check whether a send attempt still represents the desired revision. + """Check whether a send attempt still represents the desired revision. The Webmention is refreshed from the database before comparing its desired and processed revisions. @@ -60,8 +59,7 @@ def retry_delay(attempt: int) -> timedelta: @huey.task() def send_webmention(webmention_uuid: uuid.UUID) -> None: - """ - Discover a receiver endpoint and send a Webmention. + """Discover a receiver endpoint and send a Webmention. The result of the attempt is stored on the corresponding sent Webmention. Temporary failures are recorded with an exponential retry deadline. The |
