~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/librarian-gc.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:
18
18
import logging
19
19
 
20
20
from canonical.config import config
21
 
from canonical.database.sqlbase import ISOLATION_LEVEL_AUTOCOMMIT
22
21
from canonical.launchpad.database.librarian import LibraryFileAlias
23
22
from canonical.launchpad.interfaces.lpstorm import IStore
24
23
from canonical.librarian import librariangc
95
94
if __name__ == '__main__':
96
95
    script = LibrarianGC('librarian-gc',
97
96
                         dbuser=config.librarian_gc.dbuser)
98
 
    script.lock_and_run(isolation=ISOLATION_LEVEL_AUTOCOMMIT)
 
97
    script.lock_and_run(isolation='autocommit')
99
98