Skip to content
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

ClientError when calling the ReceiveMessage operation #403

Open
peterbe opened this issue Dec 6, 2018 · 1 comment
Open

ClientError when calling the ReceiveMessage operation #403

peterbe opened this issue Dec 6, 2018 · 1 comment

Comments

@peterbe
Copy link
Contributor

peterbe commented Dec 6, 2018

https://sentry.prod.mozaws.net/operations/buildhub2-stage/issues/5008100/

ClientError: An error occurred (Unknown) when calling the ReceiveMessage operation (reached max retries: 4): Unknown
(6 additional frame(s) were not displayed)
...
  File "buildhub/ingest/management/commands/daemon.py", line 23, in handle
    max_number_of_messages=settings.SQS_QUEUE_MAX_NUMBER_OF_MESSAGES,  # noqa
  File "buildhub/ingest/sqs.py", line 61, in start
    MaxNumberOfMessages=max_number_of_messages,

ClientError: An error occurred (Unknown) when calling the ReceiveMessage operation (reached max retries: 4): Unknown
@peterbe
Copy link
Contributor Author

peterbe commented Dec 6, 2018

The ClientError happened on these lines: https://github.com/mozilla/buildhub2/blob/ac1125d4afd4aa7e83208faf6d44c51849626a18/buildhub/ingest/sqs.py#L58-L62

A simple solution would be to wrap the whole thing in a try:except and do sleeps and retries. Another option is to see if we can increase the number retries from 4 to something like 8 or 16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant