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