Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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()
Exemple #4
0
 def run_check_timeouts(self):
     NORMAL.queue_noresult(self.check_timeouts)
Exemple #5
0
 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
Exemple #6
0
 def _trigger_queue(self):
     NORMAL.queue_noresult(self._do_poll)
     return
Exemple #7
0
 def run_update(self):
     NORMAL.queue_noresult(self.update)
     return
Exemple #8
0
 def queue_callbacks(self, callbacks, event, *args, **kw):
     NORMAL.queue_noresult(self.run_callbacks, callbacks, event, *args,
                           **kw)
     return len(callbacks)
Exemple #9
0
 def run_update(self):
     NORMAL.queue_noresult(self.update)
     return
Exemple #10
0
 def _queue_refresh(self):
     self._next_run = None
     NORMAL.queue_noresult(self.refresh_feed)
Exemple #11
0
 def queue_callbacks(self, callbacks, event, *args, **kw):
     NORMAL.queue_noresult(self.run_callbacks,callbacks,event,*args,**kw)
     return len(callbacks)
Exemple #12
0
 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
Exemple #13
0
 def _queue_refresh(self):
     self._next_run = None
     NORMAL.queue_noresult(self.refresh_feed)
Exemple #14
0
 def _trigger_queue(self):
     NORMAL.queue_noresult(self._do_poll)
     return