set prefetch count to 1; removed obsolete imports
This commit is contained in:
parent
c933f66a4b
commit
51a459cbf0
@ -72,6 +72,7 @@ class PikaQueueManager(QueueManager):
|
||||
|
||||
self.connection = pika.BlockingConnection(parameters=connection_params)
|
||||
self.channel = self.connection.channel()
|
||||
self.channel.basic_qos(prefetch_count=1)
|
||||
|
||||
if not dead_letter_queue:
|
||||
dead_letter_queue = CONFIG.rabbitmq.queues.dead_letter
|
||||
|
||||
@ -1,10 +1,8 @@
|
||||
from itertools import repeat
|
||||
import logging
|
||||
from functools import wraps
|
||||
from itertools import repeat
|
||||
from operator import attrgetter
|
||||
|
||||
from azure.storage.blob import ContainerClient, BlobServiceClient
|
||||
from retry import retry
|
||||
|
||||
from pyinfra.storage.adapters.adapter import StorageAdapter
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user