-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Enable AWS SQS Long Polling. #190
Comments
This issue just bit us, when we got charged on SQS for a queue that was sitting empty the whole month. The way we fixed it was to create a custom broker class that subclassed the Sqs broker class and adding a WaitTimeSeconds parameter to the
We continue to use the Hope this helps anyone who comes looking for this issue. P.S: We also overwrite the |
FYI: #506. Django-q now takes receive_message_wait_time_seconds as an argument. |
It seems that the attribute ReceiveMessageWaitTimeSeconds of SQS queue is not configurable with Django-Q on
sqs.create_queue
to enable long polling. Without that, It would produce a huge amount of requests with empty receive that increases cost spent on AWS SQS.Is there any better way to automatically configure this attribute than manually editing the existing queue on AWS console?
The text was updated successfully, but these errors were encountered: