~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/librarian-gc.py

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 07:21:53 UTC
  • mfrom: (14031 devel)
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926072153-0lj7d2924rf5xpoc
Merge devel, resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import _pythonpath
20
20
 
21
21
from canonical.config import config
22
 
from canonical.database.sqlbase import ISOLATION_LEVEL_AUTOCOMMIT
23
22
from canonical.launchpad.database.librarian import LibraryFileAlias
24
23
from canonical.launchpad.interfaces.lpstorm import IStore
25
24
from canonical.librarian import librariangc
98
97
if __name__ == '__main__':
99
98
    script = LibrarianGC('librarian-gc',
100
99
                         dbuser=config.librarian_gc.dbuser)
101
 
    script.lock_and_run(isolation=ISOLATION_LEVEL_AUTOCOMMIT)
 
100
    script.lock_and_run(isolation='autocommit')