def initiate_poll(self): if self.polls_initiated > self.polls_completed: msglog.log("broadway", msglog.types.WARN, "Request Service skipping poll " "because previous poll still processing") return self.polls_initiated += 1 NORMAL.queue_noresult(self.poll_server)
def destroy_cleared(self): destroy = self.destroy.copy() self.destroy.clear() if debug: msglog.debug("%s destroying batches: \n%r\n" % (self, destroy)) for batch in destroy: NORMAL.queue_noresult(batch.destroy, self.manager) return len(destroy)
def check_startup(self): self.synclock.acquire() try: if self.manager.is_running(): self.scheduled_startup = None NORMAL.queue_noresult(self._initialize) else: self.scheduled_startup = scheduler.after(5,self.check_startup) finally: self.synclock.release()
def run_check_timeouts(self): NORMAL.queue_noresult(self.check_timeouts)
def _proxy_trigger_queue(self): #print 'proxy triggerED' # run the set function on a thread pool thread: NORMAL.queue_noresult(self.proxy_active_set, self) return
def _trigger_queue(self): NORMAL.queue_noresult(self._do_poll) return
def run_update(self): NORMAL.queue_noresult(self.update) return
def queue_callbacks(self, callbacks, event, *args, **kw): NORMAL.queue_noresult(self.run_callbacks, callbacks, event, *args, **kw) return len(callbacks)
def _queue_refresh(self): self._next_run = None NORMAL.queue_noresult(self.refresh_feed)
def queue_callbacks(self, callbacks, event, *args, **kw): NORMAL.queue_noresult(self.run_callbacks,callbacks,event,*args,**kw) return len(callbacks)