~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/job/runner.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-26 04:10:39 UTC
  • mfrom: (14022.2.8 separate-zopeless-mail)
  • Revision ID: launchpad@pqm.canonical.com-20110926041039-p214202tdu9hz5ml
[r=lifeless][no-qa] Untangle immediate mail delivery from Zopeless.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    LeaseHeld,
65
65
    SuspendJobException,
66
66
    )
67
 
from lp.services.mail.sendmail import MailController
 
67
from lp.services.mail.sendmail import (
 
68
    MailController,
 
69
    set_immediate_mail_delivery,
 
70
    )
68
71
from lp.services.scripts.base import LaunchpadCronScript
69
72
from lp.services.twistedsupport import run_reactor
70
73
 
370
373
        scripts.execute_zcml_for_scripts(use_web_security=False)
371
374
        signal(SIGHUP, handler)
372
375
        ZopelessTransactionManager.initZopeless(dbuser=cls.dbuser)
 
376
        # XXX wgrant 2011-09-24 bug=29744: initZopeless used to do this.
 
377
        # Should be removed from callsites verified to not need it.
 
378
        set_immediate_mail_delivery(True)
373
379
 
374
380
    @staticmethod
375
381
    def __exit__(exc_type, exc_val, exc_tb):