mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 22:58:12 +08:00
SQS only supports max 10 messages in bulk mode
* capped bulk at 10 * added tests
This commit is contained in:
@@ -16,6 +16,9 @@ class Sqs(Broker):
|
||||
return m.id
|
||||
|
||||
def dequeue(self):
|
||||
# sqs supports max 10 messages in bulk
|
||||
if Conf.BULK > 10:
|
||||
Conf.BULK = 10
|
||||
t = None
|
||||
if len(self.task_cache) > 0:
|
||||
t = self.task_cache.pop()
|
||||
|
||||
Reference in New Issue
Block a user