From 5c46b568ae02a9c4d7997b756e4770d8d7b86535 Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Sat, 2 Apr 2011 01:40:23 -0600 Subject: [PATCH] added a mechanism to the iqmgr to help correct an artificially empty masterq --- bin/iqmgr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/iqmgr.py b/bin/iqmgr.py index 544a441..d5f8984 100755 --- a/bin/iqmgr.py +++ b/bin/iqmgr.py @@ -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()):