Advertisement
Guest User

Untitled

a guest
Nov 4th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. pulse_actions/worker.py | 1 +
  2. 1 file changed, 1 insertion(+)
  3.  
  4. diff --git a/pulse_actions/worker.py b/pulse_actions/worker.py
  5. index 2d34d17..37517bd 100644
  6. --- a/pulse_actions/worker.py
  7. +++ b/pulse_actions/worker.py
  8. @@ -395,16 +395,17 @@ def run_listener(config_file):
  9. sys.exit(1)
  10.  
  11. consumer = create_consumer(
  12. user=os.environ['PULSE_USER'],
  13. password=os.environ['PULSE_PW'],
  14. config_file_path=config_file,
  15. process_message=message_handler,
  16. )
  17. + consumer.qos(prefetch_size=0, prefetch_count=1, apply_global=False)
  18.  
  19. while True:
  20. try:
  21. consumer.listen()
  22. except KeyboardInterrupt:
  23. sys.exit(1)
  24. except:
  25. traceback.print_exc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement