Ejemplo n.º 1
0
    def run(self, env):
        symbol_server = nimp.model.symbol_server.configure_symbol_server(env, env.identifier)

        logging.info("Status for symbol server at '%s'", symbol_server.server_path)

        all_symbols = symbol_server.list_symbols()
        logging.info("Symbol count: %s", len(all_symbols))

        return True
Ejemplo n.º 2
0
    def run(self, env):
        symbol_server = nimp.model.symbol_server.configure_symbol_server(env, env.identifier)

        logging.info("Cleaning symbol server at '%s'%s", symbol_server.server_path, " (Simulation)" if env.simulate else "")

        all_symbols = symbol_server.list_symbols()
        symbols_to_clean = symbol_server.list_symbols_to_clean(all_symbols)
        symbol_server.clean_symbols(symbols_to_clean, env.simulate)

        logging.info("Symbol count: %s => %s", len(all_symbols), len(all_symbols) - len(symbols_to_clean))

        return True