Skip to content

Ensure POST methods get retried.#101

Open
skion wants to merge 2 commits intocustomerio:mainfrom
skion:patch-1
Open

Ensure POST methods get retried.#101
skion wants to merge 2 commits intocustomerio:mainfrom
skion:patch-1

Conversation

@skion
Copy link
Copy Markdown

@skion skion commented Sep 21, 2023

As per #76 (comment) it appears that retries are, although advertised, completely broken at the moment.

This fix should ensure that HTTP POST methods use the retry configuration as well, which in turn makes send_email() be retried.


Note

Medium Risk
Changes HTTP retry behavior to include POST requests, which can increase duplicate writes/emails if upstream endpoints are not idempotent. Scope is small and isolated to session retry configuration.

Overview
Updates the HTTP session retry configuration in client_base.py to retry all HTTP methods by setting Retry.allowed_methods=None, ensuring POST-based calls (e.g., email sends) respect the configured retry/backoff behavior.

Reviewed by Cursor Bugbot for commit 2543a71. Bugbot is set up for automated code reviews on this repo. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants