Repository navigation
Conversation
|
Hi! This PR attempts to fix the duplicate “webhook paused” notifications caused by concurrent failed deliveries. I added a transaction around the threshold transition so only the worker that actually pauses the webhook sends the alert, along with a regression test for stale concurrent messages. |
Added a test for failure threshold handling of stale concurrent webhook messages, ensuring only one alert is sent and the webhook is disabled after multiple attempts.
196ab82 to
241bc2a
Compare
Greptile SummaryThe PR serializes webhook failure-threshold updates and rolls back the pause when notification publication reports failure.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "fix: preserve webhook pause alert retrie..." | Re-trigger Greptile |
|
Hi maintainers, following up on this PR since it has not yet received a human review. The concurrency fix and regression tests are ready, and the latest automated review reports no blocking findings. I am happy to make any requested adjustments. Thank you. |
|
Closing as stale since there has been no activity for a while. Thanks for the contribution! If this is still relevant, feel free to rebase on |
Summary
Prevents concurrent failed webhook deliveries from sending duplicate paused notifications without losing the alert when notification enqueueing fails.
Root cause
Each worker incremented attempts and checked a stale webhook document independently, so multiple workers could cross the threshold and send the same alert. The pause state was then committed before notification enqueueing, and the enqueue result was ignored, which could permanently suppress a failed alert.
Changes
enabled: false; a rejected enqueue rolls the transaction back for retry.Verification
git diff --checkpasses.Fixes #12944