-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check that notifications don't exceed SQS message limit #2085
Conversation
Test 1 Test 2
So we have an existing error that handles this case already. |
Closing as investigations determined that we no longer need this additional validation / error messages bubbled up to the front end. |
Summary | Résumé
Notifications payloads sent to
/v2/notifications/{type}
are now checked to ensure that their size in bytes does not exceed the SQS message payload size limit.dict
for easier processing in some situations.SQS has a payload limit 262,144 bytes, or 256Kib. When Celery attempts to consume inflights that are greater than this size limit it will fail and the message is returned to the inflight inbox. This loop continues until the inflight is expired thus creating a lot of unnecessary Celery errors in our logs.
Related work
Test instructions | Instructions pour tester la modification
Test 1
personalisation
.Test 2
filename
content from the aboveattachment_content.txt
with something reasonable like "filename" and move the previous content into the variable added in step 1