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:
parent
c2b8c020ae
commit
14bb8a2143
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue