added a mechanism to the iqmgr to help correct an artificially empty masterq

This commit is contained in:
Stephen McQuay 2011-04-02 01:40:23 -06:00
parent d5a0d969f8
commit 5c46b568ae
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ if sys.argv[1].startswith("st"):
print " masterq : %d" % mq.qsize()
print " slavesq : %d" % sq.qsize()
if sys.argv[1] == 'add':
for i in xrange(int(sys.argv[2])):
mq.put('jane')
if sys.argv[1] == 'slay':
if len(sys.argv) == 2:
for i in xrange(mq.qsize()):