Exemplo n.º 1
0
def running(continuous, pause):
    """Currently running queries."""
    usedup = UsedUp()
    usedup.running()
    while continuous:
        time.sleep(pause)
        usedup.running()
Exemplo n.º 2
0
def details(ids, detail, query):
    """View active query details.

    `ids` == Upsight's Query ID
    """
    usedup = UsedUp()
    for qid in ids:
        usedup.details(qid, detail, query)
Exemplo n.º 3
0
def kill(ids):
    """Cancel active query.

    `ids` == Upsight's Query ID
    """
    usedup = UsedUp()
    for qid in ids:
        usedup.kill(qid=qid)