예제 #1
0
파일: tasks.py 프로젝트: cambot/Bookie
def importer_depth():
    """Update the RRD data for the import queue depth."""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_importer_depth()
    trans.commit()
    celery.task.subtask(importer_depth_rrd).delay()
예제 #2
0
def importer_depth():
    """Update the RRD data for the import queue depth."""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_importer_depth()
    trans.commit()
    celery.task.subtask(importer_depth_rrd).delay()
예제 #3
0
파일: tasks.py 프로젝트: wrestcody/Bookie
def count_tags():
    """Count the total number of tags in the system"""
    trans = transaction.begin()
    StatBookmarkMgr.count_total_tags()
    trans.commit()
예제 #4
0
파일: tasks.py 프로젝트: wrestcody/Bookie
def count_unique():
    """Count the unique number of bookmarks/urls in the system"""
    trans = transaction.begin()
    StatBookmarkMgr.count_unique_bookmarks()
    trans.commit()
예제 #5
0
파일: tasks.py 프로젝트: cambot/Bookie
def count_total():
    """Count the total number of bookmarks in the system"""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_total_bookmarks()
    trans.commit()
예제 #6
0
def count_total():
    """Count the total number of bookmarks in the system"""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_total_bookmarks()
    trans.commit()