bar
5/7/2018 - 8:43 AM

tornado timeout schedule

tornado timeout schedule

  def periodic_check():
      pass

  tornado.ioloop.IOLoop.current().add_timeout(datetime.timedelta(seconds=10),stop_tornado)
  scheduler_interval = 500
  scheduler = tornado.ioloop.PeriodicCallback(periodic_check, scheduler_interval)
  scheduler.start()