def running(continuous, pause): """Currently running queries.""" usedup = UsedUp() usedup.running() while continuous: time.sleep(pause) usedup.running()
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)
def kill(ids): """Cancel active query. `ids` == Upsight's Query ID """ usedup = UsedUp() for qid in ids: usedup.kill(qid=qid)