Next: , Previous: PBListener, Up: Status Targets


4.14.5 StatusPush

     def Process(self):
       print str(self.queue.popChunk())
       self.queueNextServerPush()
     
     import buildbot.status.status_push
     sp = buildbot.status.status_push.StatusPush(serverPushCb=Process,
                                                 bufferDelay=0.5,
                                                 retryDelay=5)
     c['status'].append(sp)

StatusPush batches events normally processed and sends it to the serverPushCb callback every bufferDelay seconds. The callback should pop items from the queue and then queue the next callback. If no items were poped from self.queue, retryDelay seconds will be waited instead.