Example #1
0
 def do_emit(self, address, examples):
     try:
         client = StreamClient(address)
         client.emit(examples)
     except Exception, ex:
         print "exc, notify that the learner at %s is not active anymore" % address
         self._registry.unreg(ComponentType.LEARNER, address)
         self._unregistered = address
Example #2
0
 def _notify(self, to, addresses):
   try:
     client = StreamClient(to)
     client.notify(addresses)
   except Exception, ex:
     print 'exc notifying %s' % to