summaryrefslogtreecommitdiff
path: root/mailman/bin
diff options
context:
space:
mode:
Diffstat (limited to 'mailman/bin')
-rw-r--r--mailman/bin/docs/master.txt8
-rw-r--r--mailman/bin/master.py3
2 files changed, 9 insertions, 2 deletions
diff --git a/mailman/bin/docs/master.txt b/mailman/bin/docs/master.txt
index 2938c7ffb..0d3cade77 100644
--- a/mailman/bin/docs/master.txt
+++ b/mailman/bin/docs/master.txt
@@ -12,7 +12,13 @@ Start the master in a subthread.
>>> master = TestableMaster()
>>> master.start()
- >>> len(list(master.qrunner_pids)) == len(config.qrunners)
+
+There should be a process id for every qrunner that claims to be startable.
+
+ >>> from lazr.config import as_boolean
+ >>> startable_qrunners = [qconf for qconf in config.qrunner_configs
+ ... if as_boolean(qconf.start)]
+ >>> len(list(master.qrunner_pids)) == len(startable_qrunners)
True
Now verify that all the qrunners are running.
diff --git a/mailman/bin/master.py b/mailman/bin/master.py
index e47e0d839..1f9868b48 100644
--- a/mailman/bin/master.py
+++ b/mailman/bin/master.py
@@ -32,6 +32,7 @@ import socket
import logging
from datetime import timedelta
+from lazr.config import as_boolean
from locknix import lockfile
from munepy import Enum
@@ -316,7 +317,7 @@ class Loop:
section_name = 'qrunner.' + name
# Let AttributeError propagate.
qrunner_config = getattr(config, section_name)
- if not qrunner_config.start:
+ if not as_boolean(qrunner_config.start):
continue
package, class_name = qrunner_config['class'].rsplit(DOT, 1)
__import__(package)