Remove webhook polling fallback in cloud adapter#997
Merged
Conversation
When sync_method is :webhook, use the local adapter for reads instead of the poll adapter so we don't poll at all. Simplifies the sync_interval setup to a single 10s default and trims jitter back to rand. Updates specs to reflect that webhook mode no longer triggers polling requests. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The stub_request_for_token helper was relaxed in 73d18be to a URL pattern that matched with or without the _cb param, so nothing verified that the webhook still triggers a cache-busted sync. Tighten the regex to require both exclude_gate_names=true and _cb=<digits> (in any order, since WebMock normalizes query params alphabetically) so every webhook test fails if cache busting regresses. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sync_methodis:webhook, so webhook-configured instances stop polling entirelysetup_syncto a single 10s defaultsync_interval(the dual webhook/poll default is no longer needed)Poller#jitterback to plainrandsince the capped jitter only mattered for the large webhook intervalhave_been_requestedTest plan
🤖 Generated with Claude Code