mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
SQS fails if the message body is over 256kb. Normally our messages are quite small, but if we're using the new save-api-email task with an email that has a large body, we can get over that limit. If so, handle the exception and fall back to the existing code path (saving to the database and sending a deliver-email task, which only has a notification id.