Skip to content

Commit

Permalink
Fix thread arg passing
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Jul 30, 2024
1 parent 429b1a1 commit 008806a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servicelayer/taskqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def consume_queue(queue):
self.on_message(channel, method, properties, body)

for queue in self.queues:
thread = threading.Thread(target=consume_queue, queue=queue)
thread = threading.Thread(target=consume_queue, args=(queue,))
thread.daemon = True
thread.start()
threads.append(thread)
Expand Down

0 comments on commit 008806a

Please sign in to comment.