feat: add retry(10) on all network requests

- New src/retry.py with configurable retry decorator
- Applied @retry() to fetch_unseen_emails, mark_as_seen,
  summarize_email, and send_message
- No backoff delay between retries
This commit is contained in:
earthjasonlin committed 2026-07-02 20:02:03 +08:00 Verified
1 parent 89149b506c
commit a6817d3e11
4 files changed
+36

No files matched your search

+2
View File
@@ -1,7 +1,9 @@
import requests
from src.config import TelegramConfig
from src.retry import retry
@retry()
def send_message(tg_cfg: TelegramConfig, text: str):
url = f"https://api.telegram.org/bot{tg_cfg.bot_token}/sendMessage"
payload = {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.