~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/scan_branches.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-01-28 23:26:44 UTC
  • mfrom: (7675.442.134 launchpad)
  • Revision ID: launchpad@pqm.canonical.com-20100128232644-350rlfnvjey5e344
Merging db-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python2.5
 
2
#
 
3
# Copyright 2010 Canonical Ltd.  This software is licensed under the
 
4
# GNU Affero General Public License version 3 (see the file LICENSE).
 
5
 
 
6
"""Scan branches for new revisions."""
 
7
 
 
8
__metaclass__ = type
 
9
 
 
10
import _pythonpath
 
11
 
 
12
from lp.services.job.runner import JobCronScript
 
13
from lp.code.interfaces.branchjob import IBranchScanJobSource
 
14
 
 
15
 
 
16
class RunScanBranches(JobCronScript):
 
17
    """Run BranchScanJob jobs."""
 
18
 
 
19
    config_name = 'branchscanner'
 
20
    source_interface = IBranchScanJobSource
 
21
 
 
22
 
 
23
if __name__ == '__main__':
 
24
    script = RunScanBranches()
 
25
    script.lock_and_run()