~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to daemons/buildd-manager.tac

  • 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:
8
8
from twisted.scripts.twistd import ServerOptions
9
9
from twisted.web import server
10
10
 
11
 
from lp.buildmaster.manager import BuilddManager
12
 
from lp.services.twistedsupport.loggingsupport import RotatableFileLogObserver
13
11
from canonical.config import config
14
12
from canonical.database.sqlbase import ZopelessTransactionManager
15
13
from canonical.launchpad.daemons import readyservice
16
14
from canonical.launchpad.scripts import execute_zcml_for_scripts
 
15
from lp.buildmaster.manager import BuilddManager
 
16
from lp.services.mail.sendmail import set_immediate_mail_delivery
 
17
from lp.services.twistedsupport.loggingsupport import RotatableFileLogObserver
17
18
 
18
19
execute_zcml_for_scripts()
19
20
ZopelessTransactionManager.initZopeless(dbuser='buildd_manager')
 
21
# XXX wgrant 2011-09-24 bug=29744: initZopeless used to do this.
 
22
# Should be removed from callsites verified to not need it.
 
23
set_immediate_mail_delivery(True)
20
24
 
21
25
options = ServerOptions()
22
26
options.parseOptions()