Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JetDrag committed Apr 24, 2024
1 parent a7f2cef commit d151075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dramatiq/brokers/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ def enqueue(self, message, *, delay=None):
has been closed.
"""
queue_name = message.queue_name
self.declare_queue(queue_name, ensure=True)

if delay is not None:
queue_name = dq_name(queue_name)
Expand All @@ -327,6 +326,7 @@ def enqueue(self, message, *, delay=None):
attempts = 1
while True:
try:
self.declare_queue(queue_name, ensure=True)
self.logger.debug("Enqueueing message %r on queue %r.", message.message_id, queue_name)
self.emit_before("enqueue", message, delay)
self.channel.basic_publish(
Expand Down

0 comments on commit d151075

Please sign in to comment.