예제 #1
0
def importer_depth_rrd():
    """Add these counts to the rrd graph"""
    rrd = ImportQueueDepth(
        ini.get('rrd_data').format(here=HERE),
        ini.get('rrd_graphs').format(here=HERE))
    rrd.mark(datetime.now(), ImportQueueMgr.size())
    rrd.update()
예제 #2
0
파일: tasks.py 프로젝트: cambot/Bookie
def importer_depth_rrd():
    """Add these counts to the rrd graph"""
    rrd = ImportQueueDepth(
        ini.get('rrd_data').format(here=HERE),
        ini.get('rrd_graphs').format(here=HERE))
    rrd.mark(
        datetime.now(),
        ImportQueueMgr.size()
    )
    rrd.update()
예제 #3
0
파일: stats.py 프로젝트: wrestcody/Bookie
 def count_importer_depth():
     """Mark how deep the importer queue is at the moment"""
     total = ImportQueueMgr.size()
     stat = StatBookmark(attrib=IMPORTER_CT, data=total)
     DBSession.add(stat)