Skip to content

feat(monitor): add capped exponential backoff helper (#276) - #347

Open
ZacLou wants to merge 1 commit into
Quittance-Labs:mainfrom
ZacLou:issue-276-monitor-backoff
Open

feat(monitor): add capped exponential backoff helper (#276)#347
ZacLou wants to merge 1 commit into
Quittance-Labs:mainfrom
ZacLou:issue-276-monitor-backoff

Conversation

@ZacLou

@ZacLou ZacLou commented Aug 31, 2026

Copy link
Copy Markdown

Closes #276

Replaces the fixed 5-second payment-stream reconnect delay with a capped exponential backoff helper.

Files changed (per issue scope):

  • �ackend/src/utils/monitor-retry-backoff.tsn- �ackend/tests/monitor-retry-backoff.test.tsn- �ackend/tests/fixtures/monitor-retry-backoff.fixture.tsn- �ackend/src/services/payment-monitor.service.tsn
    The helper doubles the delay on each failure (1s, 2s, 4s, ...) up to a 30s cap and guards against invalid inputs.

Verified locally:

pm test — all 172 backend tests pass (including new ones).

pm run typecheck — clean.

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.

feat(backend): add monitor retry backoff helper

1 participant