Skip to content

fix: suppress test cue emails + rate limit worker offline#10

Merged
govindkavaturi-art merged 2 commits intomainfrom
fix/email-suppression
Apr 3, 2026
Merged

fix: suppress test cue emails + rate limit worker offline#10
govindkavaturi-art merged 2 commits intomainfrom
fix/email-suppression

Conversation

@govindkavaturi-art
Copy link
Copy Markdown
Member

Summary

  • is_test_cue() suppresses emails for argus-, test-, verify-, e2e- cues
  • Worker offline emails rate limited to 1 per worker per hour via Redis
  • Content pipeline emails (quality, evaluator) rate limited to 1 per day
  • 12 tests added for test cue detection and suppression
  • Auth emails (magic link, key rotation) unaffected

Fixes $200 Resend overage from test cue emails.

Gk and others added 2 commits April 3, 2026 13:56
…eline emails

- Create app/services/email_service.py with is_test_cue() and centralized send_email()
- Skip failure alerts for argus-*, test-*, verify-*, e2e-* cues in worker/tasks.py
- Rate limit worker offline email: max 1 per worker per hour in worker/poller.py
- 12 tests for test cue detection and email suppression

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@govindkavaturi-art govindkavaturi-art merged commit 69e6ef4 into main Apr 3, 2026
1 check 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.

1 participant