コード例 #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
ファイル: util.py プロジェクト: mustafaascha/aleph
 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
ファイル: util.py プロジェクト: vishalbelsare/aleph
 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
ファイル: manage.py プロジェクト: sam-heller/aleph
def upgrade():
    """Create or upgrade the search index and database."""
    upgrade_system()
    update_roles()
    index_collections(sync=True)
コード例 #11
0
ファイル: manage.py プロジェクト: sam-heller/aleph
def update():
    """Re-index all collections and clear some caches."""
    update_roles()
    index_collections(sync=True)
コード例 #12
0
ファイル: worker.py プロジェクト: seekersapp2013/aleph
def hourly_tasks():
    log.info("Running hourly tasks...")
    index_collections()
コード例 #13
0
ファイル: scheduled.py プロジェクト: renesugar/aleph
def background():
    index_collections()
    check_alerts()