Example #1
0
    def poll(self):

        self._factory.poll()
        
        now = datetime.datetime.now()
        if now > self._beat_time:
            self._next_beat(now)
            beat_it(self._dashi, self._CFG, self._factory)
Example #2
0
    def poll(self):

        self._factory.poll()

        now = datetime.datetime.now()
        if now > self._beat_time:
            self._next_beat(now)
            beat_it(self._dashi, self._CFG, self._factory)
Example #3
0
 def dump_state(self, rpc=False):
     if rpc:
         return make_beat_msg(self._process_managers_map, self.CFG)
     else:
         beat_it(self.dashi, self.CFG, self._process_managers_map, log=self._log)
Example #4
0
 def dump_state(self):
     beat_it(self.dashi, self.CFG, self._process_managers_map, log=self._log)