def main(_, options): observer = initialize(options) observer.start() root_server = configure_server(observer) thread = ExceptionalThread(target=lambda: root_server.run(options.ip, options.port, 'cherrypy')) thread.daemon = True thread.start() sleep_forever()
def main(_, options): observer = initialize(options) observer.start() root_server = configure_server(observer) thread = ExceptionalThread(target=lambda: root_server.run('0.0.0.0', options.port, 'cherrypy')) thread.daemon = True thread.start() sleep_forever()
def main(_, opts): path_detector = FixedPathDetector(opts.root) task_observer = TaskObserver(path_detector) task_observer.start() server = configure_server(task_observer) thread = ExceptionalThread(target=lambda: server.run('0.0.0.0', opts.port, 'cherrypy')) thread.daemon = True thread.start() sleep_forever()
def main(_, opts): path_detector = FixedPathDetector(opts.root) task_observer = TaskObserver(path_detector) task_observer.start() server = configure_server(task_observer) thread = ExceptionalThread( target=lambda: server.run('0.0.0.0', opts.port, 'cherrypy')) thread.daemon = True thread.start() sleep_forever()
def main(_, options): path_detector = ChainedPathDetector( FixedPathDetector(options.root), MesosPathDetector(options.mesos_root), ) observer = TaskObserver(path_detector) observer.start() root_server = configure_server(observer) thread = ExceptionalThread(target=lambda: root_server.run('0.0.0.0', options.port, 'cherrypy')) thread.daemon = True thread.start() sleep_forever()
def main(_, options): path_detector = ChainedPathDetector( FixedPathDetector(options.root), MesosPathDetector(options.mesos_root), ) observer = TaskObserver(path_detector) observer.start() root_server = configure_server(observer) thread = ExceptionalThread( target=lambda: root_server.run('0.0.0.0', options.port, 'cherrypy')) thread.daemon = True thread.start() sleep_forever()