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 | |
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.
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | bin/qrunner | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -35,6 +35,9 @@ Here is a history of user visible changes to Mailman. - Corrected and augmented some security log messages. (LP: #1810098) + - Implemented use of QRUNNER_SLEEP_TIME for bin/qrunner --runner=All. + (LP: #1818205) + 2.1.29 (24-Jul-2018) Bug Fixes 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) |