예제 #1
0
파일: request.py 프로젝트: mcruse/monotone
 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)
예제 #2
0
파일: batch.py 프로젝트: mcruse/monotone
 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)
예제 #3
0
파일: store.py 프로젝트: mcruse/monotone
 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()
예제 #4
0
 def run_check_timeouts(self):
     NORMAL.queue_noresult(self.check_timeouts)
예제 #5
0
파일: proxy.py 프로젝트: mcruse/monotone
 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
예제 #6
0
 def _trigger_queue(self):
     NORMAL.queue_noresult(self._do_poll)
     return
예제 #7
0
파일: kwh2kw.py 프로젝트: mcruse/monotone
 def run_update(self):
     NORMAL.queue_noresult(self.update)
     return
예제 #8
0
 def queue_callbacks(self, callbacks, event, *args, **kw):
     NORMAL.queue_noresult(self.run_callbacks, callbacks, event, *args,
                           **kw)
     return len(callbacks)
예제 #9
0
 def run_update(self):
     NORMAL.queue_noresult(self.update)
     return
예제 #10
0
파일: results.py 프로젝트: mcruse/monotone
 def _queue_refresh(self):
     self._next_run = None
     NORMAL.queue_noresult(self.refresh_feed)
예제 #11
0
 def queue_callbacks(self, callbacks, event, *args, **kw):
     NORMAL.queue_noresult(self.run_callbacks,callbacks,event,*args,**kw)
     return len(callbacks)
예제 #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
예제 #13
0
 def _queue_refresh(self):
     self._next_run = None
     NORMAL.queue_noresult(self.refresh_feed)
예제 #14
0
파일: client.py 프로젝트: mcruse/monotone
 def _trigger_queue(self):
     NORMAL.queue_noresult(self._do_poll)
     return