smbinterp/bin/iqstat.py

14 lines
348 B
Python
Raw Normal View History

2011-04-01 13:51:12 -07:00
import interp.bootstrap
2011-04-01 23:10:29 -07:00
from interp.cluster import QueueManager, get_qs
2011-04-01 13:51:12 -07:00
m = QueueManager(address=('localhost', 6666), authkey='asdf')
m.connect()
2011-04-01 23:10:29 -07:00
tq,rq,mq,sq = get_qs(m)
2011-04-01 13:51:12 -07:00
print "interp queue status:"
2011-04-01 23:10:29 -07:00
print " tasksq : %d" % tq.qsize()
print " resultsq : %d" % rq.qsize()
print " masterq : %d" % mq.qsize()
print " slavesq : %d" % sq.qsize()