diff options
author | Mark Sapiro <mark@msapiro.net> | 2019-03-01 18:34:46 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2019-03-01 18:34:46 -0800 |
commit | ae069ea19ddc31cb1ce9fa48f6b305ee6cdb4266 (patch) | |
tree | 7cb1c253a488c8e5634ce05798ca1ef10b298545 /bin/qrunner | |
parent | d42ff460f48550f01b7cf97935df4bcdfb829373 (diff) | |
parent | 5568370030aad8cd6403943c2e4252aac65dac50 (diff) | |
download | mailman2-ae069ea19ddc31cb1ce9fa48f6b305ee6cdb4266.tar.gz mailman2-ae069ea19ddc31cb1ce9fa48f6b305ee6cdb4266.tar.xz mailman2-ae069ea19ddc31cb1ce9fa48f6b305ee6cdb4266.zip |
Implemented use of QRUNNER_SLEEP_TIME for bin/qrunner --runner=All.
Diffstat (limited to '')
-rw-r--r-- | bin/qrunner | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/qrunner b/bin/qrunner index 0ca2f993..911276e3 100644 --- a/bin/qrunner +++ b/bin/qrunner @@ -75,6 +75,7 @@ operation. It is only useful for debugging if it is run separately. import sys import getopt import signal +import time import paths from Mailman import mm_cfg @@ -268,6 +269,8 @@ def main(): qrunner.run() if once: break + if mm_cfg.QRUNNER_SLEEP_TIME > 0: + time.sleep(mm_cfg.QRUNNER_SLEEP_TIME) syslog('qrunner', 'Main qrunner loop exiting.') # All done sys.exit(loop.status) |