infra
This commit is contained in:
@@ -48,7 +48,10 @@ class MessagingSupport(BaseCommand):
|
||||
while True:
|
||||
try:
|
||||
with pika.BlockingConnection(
|
||||
pika.ConnectionParameters(host=settings.RABBIT_HOST)
|
||||
pika.ConnectionParameters(
|
||||
host=settings.RABBIT_HOST,
|
||||
credentials=pika.PlainCredentials('guest', settings.RABBIT_PASSWORD)
|
||||
)
|
||||
) as connection:
|
||||
channel = connection.channel()
|
||||
channel.queue_declare(queue=self.queue_name)
|
||||
|
Reference in New Issue
Block a user