def thread_run(self): thread_push_log("[IDXQ]") with self.xom.keyfs.transaction(write=False) as tx: indexer = get_indexer(self.xom) searcher = indexer.get_project_ix().searcher() self.shared_data.queue_projects(iter_projects(self.xom), tx.at_serial, searcher)
def devpiserver_mirror_initialnames(stage, projectnames): xom = stage.xom ix = get_indexer(xom.config) ix.delete_index() indexer = get_indexer(xom.config) # directly use projectnames? indexer.update_projects(iter_projects(xom), clear=True) threadlog.info("finished initial indexing op")
def devpiserver_pypi_initial(stage, name2serials): xom = stage.xom ix = get_indexer(xom.config) ix.delete_index() indexer = get_indexer(xom.config) # directly use name2serials? indexer.update_projects(iter_projects(xom), clear=True) threadlog.info("finished initial indexing op")
def devpiserver_cmdline_run(xom): ix = get_indexer(xom.config) if xom.config.args.recreate_search_index: ix.delete_index() indexer = get_indexer(xom.config) indexer.update_projects(iter_projects(xom), clear=True) # only exit when indexing explicitly return 0 # allow devpi-server to run return None
def devpiserver_run_commands(xom): ix = get_indexer(xom.config) if xom.config.args.index_projects: ix.delete_index() indexer = get_indexer(xom.config) indexer.update_projects(iter_projects(xom), clear=True) # only exit when indexing explicitly return 0 # allow devpi-server to run return None
def devpiserver_cmdline_run(xom): if xom.config.args.recreate_search_index: if not xom.config.args.offline_mode: fatal("The --recreate-search-index option requires the --offline option.") ix = get_indexer(xom.config) ix.delete_index() indexer = get_indexer(xom.config) indexer.update_projects(iter_projects(xom), clear=True) # only exit when indexing explicitly return 0 # allow devpi-server to run return None