示例#1
0
 def start(self):
     utils.do_register(self.client)
     self.poll()
     self.scheduler.start()
     try:
         while True:
             # Due to the new Background scheduler nature, we need to keep
             # the main thread alive.
             time.sleep(1)
     except (KeyboardInterrupt, SystemExit):
         # Not strictly necessary if daemonic mode is enabled but
         # should be done if possible
         self.scheduler.shutdown(wait=False)
示例#2
0
 def start(self):
     utils.do_register(self.client)
     self.poll()
     self.scheduler.start()
示例#3
0
 def start(self):
     utils.do_register(self.client)
     self.poll()
     self.scheduler.start()
示例#4
0
 def test_do_register(self):
     ret = utils.do_register(self.client, args=None)
     self.assertEqual(0, ret)