diff options
| author | Barry Warsaw | 2011-06-01 17:09:32 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-06-01 17:09:32 -0400 |
| commit | bf8b285acb8c2500e52ae2582f27513b9842de54 (patch) | |
| tree | 53e30be0bb665d66a9350fe58d22697c4c0a860e /src/mailman/core/runner.py | |
| parent | 0f85fb344688e1982e9320e79b7fb38eefc1ac53 (diff) | |
| download | mailman-bf8b285acb8c2500e52ae2582f27513b9842de54.tar.gz mailman-bf8b285acb8c2500e52ae2582f27513b9842de54.tar.zst mailman-bf8b285acb8c2500e52ae2582f27513b9842de54.zip | |
Diffstat (limited to 'src/mailman/core/runner.py')
| -rw-r--r-- | src/mailman/core/runner.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mailman/core/runner.py b/src/mailman/core/runner.py index 3d876ac3d..c24563e68 100644 --- a/src/mailman/core/runner.py +++ b/src/mailman/core/runner.py @@ -54,15 +54,16 @@ class Runner: intercept_signals = True def __init__(self, name, slice=None): - """Create a queue runner. + """Create a runner. - :param slice: The slice number for this queue runner. This is passed - directly to the underlying `ISwitchboard` object. + :param slice: The slice number for this runner. This is passed + directly to the underlying `ISwitchboard` object. This is ignored + for runners that don't manage a queue. :type slice: int or None """ # Grab the configuration section. self.name = name - section = getattr(config, 'qrunner.' + name) + section = getattr(config, 'runner.' + name) substitutions = config.paths substitutions['name'] = name self.queue_directory = expand(section.path, substitutions) @@ -87,7 +88,7 @@ class Runner: def run(self): """See `IRunner`.""" - # Start the main loop for this queue runner. + # Start the main loop for this runner. try: while True: # Once through the loop that processes all the files in the |
