Don't mark emails as read on failure — retry instead (#579)#580
Merged
claude-ERA merged 1 commit intomainfrom Mar 1, 2026
Merged
Don't mark emails as read on failure — retry instead (#579)#580claude-ERA merged 1 commit intomainfrom
claude-ERA merged 1 commit intomainfrom
Conversation
The map email cron was marking emails as read regardless of whether processing succeeded or failed. This meant failures were silent — the email disappeared from the unread queue and nobody knew. Now only marks as read on success/partial. Failed emails stay unread and get retried on the next cron run (every 5 min). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Auto-mergedPR #580 merged and deployed. Smoke test: WARNING — see output Verify: https://era-website.onrender.com Test output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The map email cron marked emails as read even when processing failed. This destroyed the retry opportunity and made failures invisible — the exact silent failure pattern from today's Phase 5 incident.
Fix: Only mark as read on
successorpartial. Failed emails stay unread and get retried on the next cron run (every 5 min).Test plan
🤖 Generated with Claude Code