Remove tight loop from notifications process

Block on join()ing threads instead of a tight no op loop.
This should reduce CPU usage of an otherwise idle RUG.

Change-Id: Ife8a5e1092bf13f431ddbfa6fd6751551df82ff4
Closes-bug: #1475781
This commit is contained in:
Adam Gandelman 2015-07-20 16:41:48 -07:00
parent c2b8c020ae
commit 14bb8a2143
1 changed files with 1 additions and 2 deletions

View File

@ -197,8 +197,7 @@ def listen(notification_queue):
# NOTE(adam_g): We previously consumed dhcp_agent messages as well
# as agent messgaes with hostname appended, do we need them still?
connection.consume_in_threads()
while True:
pass
connection.close()
class Sender(object):