Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/contact/contact_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def send_confirmation_email(contact_data) -> bool:
'nonprofit': 'Nonprofit Partnership',
'judge': 'Judging Opportunity',
'volunteer': 'Volunteer Opportunity',
'volunteer_letter': 'Volunteer Letter Request',
'media': 'Media Inquiry',
'other': 'General Question'
}.get(contact_data.get('inquiryType', ''), contact_data.get('inquiryType', 'General Inquiry'))
Expand Down
11 changes: 8 additions & 3 deletions services/volunteers_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2759,9 +2759,14 @@ def _fetch_and_cache_resend_emails() -> Optional[Dict[str, Any]]:
max_pages=max_pages, total_so_far=len(all_emails))

if page_error_occurred:
# Release lock so the next request can retry
delete_cached(_RESEND_LOCK_KEY)
return None
if not all_emails:
# No data at all — release lock so the next request can retry
delete_cached(_RESEND_LOCK_KEY)
return None
# We have partial data from earlier pages — use it rather than discarding
warning(logger, "Returning partial Resend email data due to fetch error",
total_fetched=len(all_emails))
truncated = True

# Build index by recipient email
index: Dict[str, List[Dict]] = {}
Expand Down
Loading