~launchpad-pqm/launchpad/devel

10637.3.1 by Guilherme Salgado
Use the default python version instead of a hard-coded version
1
#!/usr/bin/python -S
8687.15.7 by Karl Fogel
Add the copyright header block to more files.
2
#
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
7675.85.2 by Jonathan Lange
Undo revision generated by step 2 of process.
5
6
"""Database garbage collector.
7
8
Remove or archive unwanted data. Detect, warn and possibly repair data
9
corruption.
10
"""
11
12
__metaclass__ = type
13
__all__ = []
14
15
import _pythonpath
16
from canonical.launchpad.scripts.garbo import HourlyDatabaseGarbageCollector
17
18
if __name__ == '__main__':
19
    script = HourlyDatabaseGarbageCollector()
8579.2.3 by Stuart Bishop
Refactor HWSubmission linking and allow garbo to continue even if one tunable loop died
20
    script.continue_on_failure = True
7675.85.2 by Jonathan Lange
Undo revision generated by step 2 of process.
21
    script.lock_and_run()
22