code: def event_handler(self):
          
  
          if not self._notify_queue:
              LOG.error('event_handler: no notification queue for %s',
                        self._service_name)
              return
  
          LOG.debug('calling event handler for %s', self)
          self.start()
          self.wait()
docs: Wait on queue for listening to the events.