def stop(self): if not self.started: return env.stop() self.scheduler.stop() self.started = False
def stop(self): if not self.started: return env.stop() try: import dpark.web dpark.web.stop(self.web_port) except ImportError: pass self.scheduler.stop() self.started = False close_mfs()