def delete_job(self, name): self.logger.debug("Supervisord: delete job %s Stop_job --> remove_process_group --> delete_config_file --> reload_config"%(name)) filee = File() conf_dir = SUPERVISORD["CONF_DIR"] + "/" + name + SUPERVISORD["CONF_EXTENSION"] filee.delete(conf_dir) time.sleep(1) self.sa.stop_process(name) self.sa.remove_process_group(name) return 0