aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/qrunner3
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)