added a qstat like script
This commit is contained in:
parent
ba1fd5e3a4
commit
314142b11a
13
bin/iqstat.py
Normal file
13
bin/iqstat.py
Normal 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())
|
Loading…
Reference in New Issue
Block a user