~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/distributionmirror-prober.py

  • Committer: William Grant
  • Date: 2011-09-24 03:56:19 UTC
  • mto: This revision was merged to the branch mainline in revision 14030.
  • Revision ID: william.grant@canonical.com-20110924035619-ht8qu83op75xhdgr
LaunchpadScript no longer uses initZopeless.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import os
13
13
 
14
14
from canonical.config import config
15
 
from canonical.database.sqlbase import ISOLATION_LEVEL_AUTOCOMMIT
16
15
from lp.services.scripts.base import (
17
16
    LaunchpadCronScript,
18
17
    LaunchpadScriptFailure,
67
66
    script = DistroMirrorProberScript(
68
67
        'distributionmirror-prober',
69
68
        dbuser=config.distributionmirrorprober.dbuser)
70
 
    script.lock_and_run(isolation=ISOLATION_LEVEL_AUTOCOMMIT)
 
69
    script.lock_and_run(isolation='autocommit')