12269.4.6
by Aaron Bentley
Support running TranslationMergeJobs from a script. |
1 |
#!/usr/bin/python -S
|
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 |
"""Run jobs specified by a config section."""
|
|
7 |
||
8 |
__metaclass__ = type |
|
9 |
||
10 |
import _pythonpath |
|
11 |
||
12 |
from lp.services.job.runner import JobCronScript |
|
13 |
||
14612.2.8
by William Grant
cronscripts |
14 |
|
12269.4.6
by Aaron Bentley
Support running TranslationMergeJobs from a script. |
15 |
if __name__ == '__main__': |
16 |
script = JobCronScript(commandline_config=True) |
|
17 |
script.lock_and_run() |