Skip to content

Conversation

@jcscottiii
Copy link
Collaborator

Implements the data layer for tracking notification channel health and logging delivery attempts, which is critical for the Email Worker's reliability logic.

Changes:

  • State Management: Added RecordNotificationChannelSuccess and RecordNotificationChannelFailure methods.
    • Success: Resets failure count and logs a success attempt.
    • Failure: Increments failure count (if permanent), checks disable threshold (5 failures), and logs a failure attempt. Supports transient errors (no penalty).
  • Transactions: State updates and attempt logging are performed atomically within a single read-write transaction.

Other changes: Added some more tests for the list functionality.

@jcscottiii jcscottiii requested a review from jrobbins December 31, 2025 02:14
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt1 branch from d4f7e59 to 64c24fa Compare January 14, 2026 02:14
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt2 branch from 404e2d0 to 4cf4293 Compare January 14, 2026 02:16
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt1 branch from 64c24fa to 91cbac5 Compare January 14, 2026 14:05
Base automatically changed from jcscottiii/email-worker-pt1 to main January 14, 2026 14:59
Implements the data layer for tracking notification channel health and logging
delivery attempts, which is critical for the Email Worker's reliability logic.

Changes:
- **State Management**: Added `RecordNotificationChannelSuccess` and
  `RecordNotificationChannelFailure` methods.
  - `Success`: Resets failure count and logs a success attempt.
  - `Failure`: Increments failure count (if permanent), checks disable threshold
    (5 failures), and logs a failure attempt. Supports transient errors (no
    penalty).
- **Transactions**: State updates and attempt logging are performed atomically
  within a single read-write transaction.

Other changes: Added some more tests for the list functionality.
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt2 branch from 4cf4293 to 73fcc01 Compare January 14, 2026 16:04
@jcscottiii jcscottiii enabled auto-merge January 14, 2026 16:04
@jcscottiii jcscottiii added this pull request to the merge queue Jan 14, 2026
Merged via the queue into main with commit b2d9373 Jan 14, 2026
8 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/email-worker-pt2 branch January 14, 2026 17:02
@jstenback jstenback mentioned this pull request Jan 15, 2026
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