def shutDown(self, signum=False, frame=False): if self.is_master(): self.logger.info("Shutting down LumberMill.") # Send SIGINT to workers for good measure. for worker in list(self.child_processes): os.kill(worker.pid, signal.SIGINT) if not self.alive: sys.exit(0) self.alive = False self.shutDownModules() TimedFunctionManager.stopTimedFunctions() tornado.ioloop.IOLoop.instance().stop() if self.is_master(): self.logger.info("Shutdown complete.")
def stopInterval(self): TimedFunctionManager.stopTimedFunctions(self.timed_func_handle) self.timed_func_handle = False