def repair(foreign_id=None, entities=False): """Re-index all the collections and entities.""" update_roles() if foreign_id: collection = get_collection(foreign_id) index_collection(collection, entities=entities, refresh=True) else: index_collections(entities=entities, refresh=True)
def periodic(self): db.session.remove() if self.hourly.check(): self.hourly.update() log.info("Running hourly tasks...") index_collections() if self.daily.check(): self.daily.update() log.info("Running daily tasks...") check_alerts() generate_digest()
def update(foreign_id=None, index=False, process=False, reset=False): """Re-index all the collections and entities.""" update_roles() index_collections(refresh=True)
def update_index(self): index_collections() index_entities() self.flush_index()
def repair(): """Re-index all the collections and entities.""" index_collections() index_entities() update_roles()
def update_index(self): index_collections(entities=True)
def update_index(self): index_collections(entities=True)
def hourly(): index_collections() check_alerts()
def hourly(): index_collections()
def upgrade(): """Create or upgrade the search index and database.""" upgrade_system() update_roles() index_collections(sync=True)
def update(): """Re-index all collections and clear some caches.""" update_roles() index_collections(sync=True)
def hourly_tasks(): log.info("Running hourly tasks...") index_collections()
def background(): index_collections() check_alerts()