def _new_alarms(self, event): self.__lock.acquire() try: if not self.is_running(): raise ENotStarted('%s' % self.as_node_url()) finally: self.__lock.release() for alarm in event: self.__alarm_queue.put(alarm.as_dictionary()) self.message_log('New Alarms Event, queuing action') LOW.queue_noresult(self._prime_process_alarm_queue) return
def tz_change_detector(self): LOW.queue_noresult(self._tz_change_detector)