~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).
5
4935.3.7 by Curtis Hovey
Added bad name suppression to cronscripts.
6
# pylint: disable-msg=C0103,W0403
7
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
8
"""
9
Cron job to run daily to check all of the BugWatches
10
"""
11
2125 by Canonical.com Patch Queue Manager
[r=bjornt] Cronscript refactorings
12
import _pythonpath
1752 by Canonical.com Patch Queue Manager
[r=jamesh] Ensure checkwatches.py does locking and some updates to current standards.
13
4813.6.1 by Graham Binns
Added default_socket_timeout key to checkwatches config section.
14
from canonical.config import config
9638.4.1 by Graham Binns
Moved the checkwatches LaunchpadCronScript class into lp.bugs.scripts.checkwatches.
15
from lp.bugs.scripts.checkwatches import CheckWatchesCronScript
5573.1.2 by Gavin Panella
Stop caching the copy_to_zlog configuration parameter in ErrorReportingUtility.
16
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
17
if __name__ == '__main__':
9638.4.1 by Graham Binns
Moved the checkwatches LaunchpadCronScript class into lp.bugs.scripts.checkwatches.
18
    script = CheckWatchesCronScript(
19
        "checkwatches", dbuser=config.checkwatches.dbuser)
10512.4.10 by Gavin Panella
Go back to ISOLATION_LEVEL_SERIALIZABLE in checkwatches.
20
    script.lock_and_run()