summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib
diff options
context:
space:
mode:
authorbwarsaw2001-02-15 06:02:48 +0000
committerbwarsaw2001-02-15 06:02:48 +0000
commita194e9921f4316aae300ad0f5a8b7befe934ce46 (patch)
tree7c1794cfbcdc4c7c4d34338c2128a72a835c2092 /Mailman/pythonlib
parenta915775b9640253a9a54d3181ac305429a5dfdad (diff)
downloadmailman-a194e9921f4316aae300ad0f5a8b7befe934ce46.tar.gz
mailman-a194e9921f4316aae300ad0f5a8b7befe934ce46.tar.zst
mailman-a194e9921f4316aae300ad0f5a8b7befe934ce46.zip
__init__(): Accept information for hash space slicing (slice number
and total number of slices). Create the runner-specific switchboard, the shunt switchboard (for messages that generate uncaught exceptions), and the mainloop stop flag. We also have no need for a runner-specific lock since the qrunner watchdog infrastructure handles all that for us now. _dequeue(): This is no longer part of the Runner interface (it's been moved to the Switchboard). run(), __oneloop(), __onefile(): Rework the mainloop for flexibility and robustness. run() is the main loop and handles KeyboardInterrupt exceptons, guaranteed cleanup at mainloop exit, checking the stop flag and calling _doperiod() after each cycle through the mainloop, and sleeping for a while if there are no files in the queue directory. __oneloop() handles cruising through the list of all the files in the queue (modulo any hash space slicing) exactly once. __onefile(): handles the work for one queue file. _snooze(): sleeps for a specified amount of time. _log(): A convenient logging facility for subclasses _start(), _onefile(): deleted.
Diffstat (limited to 'Mailman/pythonlib')
0 files changed, 0 insertions, 0 deletions