Skip to content

Add retry logic for Slack webhook send#292

Merged
satterly merged 1 commit intomasterfrom
fix/retry-slack-send
Mar 29, 2026
Merged

Add retry logic for Slack webhook send#292
satterly merged 1 commit intomasterfrom
fix/retry-slack-send

Conversation

@satterly
Copy link
Copy Markdown
Contributor

Summary

  • Retry Slack webhook send() up to 3 times with linear backoff (1s, 2s, 3s) on transient failures
  • Logs a warning on each retry attempt via core.warning()
  • No new dependencies — uses a simple retry loop

Closes #196

Test plan

  • New test: retries on transient error then succeeds on 3rd attempt
  • New test: throws after exhausting all 3 retries
  • All 40 tests pass (14 suites)
  • CI passes on GitHub Actions

🤖 Generated with Claude Code

Retry up to 3 times with linear backoff (1s, 2s, 3s) when the Slack
webhook send fails due to transient network errors like ECONNRESET.

Closes #196

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@satterly satterly merged commit a381f14 into master Mar 29, 2026
5 checks passed
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.

Handle Slack errors

1 participant