fix: replace imap backoff db columns with redis-based exponential backoff

This commit is contained in:
Tanmay Deep Sharma
2026-02-25 20:40:31 +05:30
parent 2963ccbd47
commit 0736d69dec
4 changed files with 32 additions and 19 deletions
+4
View File
@@ -52,4 +52,8 @@ module Redis::RedisKeys
## Account Email Rate Limiting
ACCOUNT_OUTBOUND_EMAIL_COUNT_KEY = 'OUTBOUND_EMAIL_COUNT::%<account_id>d::%<date>s'.freeze
## IMAP Backoff / Fetch Tracking (channel_email)
IMAP_BACKOFF_RETRY_COUNT = 'IMAP_BACKOFF:channel_email:%<channel_id>d:retry_count'.freeze
IMAP_BACKOFF_RETRY_AFTER = 'IMAP_BACKOFF:channel_email:%<channel_id>d:retry_after'.freeze
end