added a qstat like script

This commit is contained in:
Stephen Mardson McQuay 2011-04-01 14:51:12 -06:00
parent ba1fd5e3a4
commit 314142b11a

13
bin/iqstat.py Normal file
View File

@ -0,0 +1,13 @@
import interp.bootstrap
from multiprocessing.managers import BaseManager
class QueueManager(BaseManager): pass
QueueManager.register('get_inqueue' )
QueueManager.register('get_outqueue')
m = QueueManager(address=('localhost', 6666), authkey='asdf')
m.connect()
m.get_outqueue()
oq = m.get_outqueue()
iq = m.get_inqueue()
print "interp queue status:"
print " oq: %d, iq: %d" % (oq.qsize(), iq.qsize())