diff options
| author | Barry Warsaw | 2009-02-04 07:00:56 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-02-04 07:00:56 -0500 |
| commit | b93b16bea10a1983bd784d56703518134f538d08 (patch) | |
| tree | 14c0e17243908377f903eb7af73cdfff72ebf53c /src/mailman/queue/retry.py | |
| parent | bbbe644f21ef956e0b94a2d7ba9dd73e97846e3d (diff) | |
| download | mailman-b93b16bea10a1983bd784d56703518134f538d08.tar.gz mailman-b93b16bea10a1983bd784d56703518134f538d08.tar.zst mailman-b93b16bea10a1983bd784d56703518134f538d08.zip | |
Diffstat (limited to 'src/mailman/queue/retry.py')
| -rw-r--r-- | src/mailman/queue/retry.py | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mailman/queue/retry.py b/src/mailman/queue/retry.py index 2b5a6afad..d2ca78add 100644 --- a/src/mailman/queue/retry.py +++ b/src/mailman/queue/retry.py @@ -15,6 +15,16 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see <http://www.gnu.org/licenses/>. +"""Retry delivery.""" + +from __future__ import absolute_import, unicode_literals + +__metaclass__ = type +__all__ = [ + 'RetryRunner', + ] + + import time from mailman.config import config @@ -23,15 +33,13 @@ from mailman.queue import Runner class RetryRunner(Runner): - def __init__(self, slice=None, numslices=1): - Runner.__init__(self, slice, numslices) - self._outq = config.switchboards['out'] + """Retry delivery.""" def _dispose(self, mlist, msg, msgdata): - # Move it to the out queue for another retry - self._outq.enqueue(msg, msgdata) + # Move the message to the out queue for another try. + config.switchboards['outgoing'].enqueue(msg, msgdata) return False def _snooze(self, filecnt): - # We always want to snooze + # We always want to snooze. time.sleep(self.sleep_float) |
