def emitEvents(self, jobId, eventList): """ Send in-progress status updates on events affecting troves """ m = messages.EventList() m.set(jobId, eventList) # send synchronous message tells the node not to return until # the messages are sent. We want events to be high-priority # messages that get self.bus.sendSynchronousMessage('/event', m)
def emitEvents(self, jobId, eventList): m = messages.EventList(jobId, eventList) self.bus.sendSynchronousMessage('/event', m)