Skip to content
Snippets Groups Projects
Commit 092b7b5b authored by John Chilton's avatar John Chilton
Browse files

Fix to allow pulsar to shutdown cleanly again.

parent 4aad37d8
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ class QueueManager(Manager):
self.work_threads = []
for i in range(num_concurrent_jobs):
worker = threading.Thread(target=self.run_next)
worker.daemon = True
worker.start()
self.work_threads.append(worker)
......
......@@ -71,7 +71,9 @@ def __start_consumer(name, exchange, target):
exchange_url = mask_password_from_url(exchange.url)
thread_name = "consume-%s-%s" % (name, exchange_url)
thread = threading.Thread(name=thread_name, target=target)
thread.daemon = False
# TODO: If the shutdown code is actually called make this
# not a daemon.
thread.daemon = True
thread.start()
return thread
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment