~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/oops-prune.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:
13
13
import os
14
14
 
15
15
from canonical.config import config
16
 
from canonical.database.sqlbase import ISOLATION_LEVEL_AUTOCOMMIT
17
16
from lp.services.scripts.base import (
18
17
    LaunchpadCronScript, LaunchpadScriptFailure)
19
18
from canonical.launchpad.scripts.oops import (
54
53
 
55
54
if __name__ == '__main__':
56
55
    script = OOPSPruner('oops-prune', dbuser='oopsprune')
57
 
    script.lock_and_run(isolation=ISOLATION_LEVEL_AUTOCOMMIT)
 
56
    script.lock_and_run(isolation='autocommit')