Closed flyudvik closed 4 years ago
Hi @flyudvik, are you sure you diagnosed the problem correctly on your end? The SQS endpoint for receiving messages holds the connection open for up to 20 seconds if there aren't any messages on the queue so this should be unnecessary.
Did you by any chance set the DRAMATIQ_SQS_MIN_TIMEOUT
environment variable to something other than 20?
I've closed this since it's been a while. Feel free to re-open if you have more info!
using this package I encountered an issue of my CPU running 100% when no messages returned from SQS. So for this reason I've added the time.sleep on example of dramatiq.brokers.redis