예제 #1
0
 def _send_died_notifications(self, state):
     self.log("Sending 'died' notifications to the partners, which are: %r",
              state.descriptor.partners)
     state.so_took_reponsability = False
     fibers = list()
     for partner, brothers in self._iter_categorized_partners():
         f = requester.notify_died(
             state.agent, partner, state.recp, brothers)
         f.add_callback(self._on_died_response_handler)
         fibers.append(f)
     f = fiber.FiberList(fibers, consumeErrors=True)
     f.succeed()
     return f
예제 #2
0
 def notify_died(self, state, recp, origin):
     return requester.notify_died(self, recp, origin, 'payload')