示例#1
0
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)
示例#2
0
    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()
示例#3
0
文件: manage.py 项目: SinSiXX/aleph
def update(foreign_id=None, index=False, process=False, reset=False):
    """Re-index all the collections and entities."""
    update_roles()
    index_collections(refresh=True)
示例#4
0
 def update_index(self):
     index_collections()
     index_entities()
     self.flush_index()
示例#5
0
def repair():
    """Re-index all the collections and entities."""
    index_collections()
    index_entities()
    update_roles()
示例#6
0
 def update_index(self):
     index_collections(entities=True)
示例#7
0
文件: util.py 项目: pudo/aleph
 def update_index(self):
     index_collections(entities=True)
示例#8
0
def hourly():
    index_collections()
    check_alerts()
示例#9
0
文件: scheduled.py 项目: pudo/aleph
def hourly():
    index_collections()
示例#10
0
def upgrade():
    """Create or upgrade the search index and database."""
    upgrade_system()
    update_roles()
    index_collections(sync=True)
示例#11
0
def update():
    """Re-index all collections and clear some caches."""
    update_roles()
    index_collections(sync=True)
示例#12
0
def hourly_tasks():
    log.info("Running hourly tasks...")
    index_collections()
示例#13
0
def background():
    index_collections()
    check_alerts()