configurable sleeptime for kojira
This commit is contained in:
parent
b85ad14377
commit
8b53132884
1 changed files with 3 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ def main(options, session):
|
|||
# log the exception and continue
|
||||
logger.error(''.join(traceback.format_exception(*sys.exc_info())))
|
||||
try:
|
||||
time.sleep(5)
|
||||
time.sleep(options.sleeptime)
|
||||
except KeyboardInterrupt:
|
||||
logger.warn("User exit")
|
||||
break
|
||||
|
|
@ -543,6 +543,7 @@ def get_options():
|
|||
help="don't actually run main")
|
||||
parser.add_option("--show-config", action="store_true", default=False,
|
||||
help="Show config and exit")
|
||||
parser.add_option("--sleeptime", type='int', help="Specify the polling interval")
|
||||
parser.add_option("-s", "--server", help="URL of XMLRPC server")
|
||||
parser.add_option("--topdir", help="Specify topdir")
|
||||
parser.add_option("--logfile", help="Specify logfile")
|
||||
|
|
@ -577,6 +578,7 @@ def get_options():
|
|||
'repo_tasks_limit' : 10,
|
||||
'deleted_repo_lifetime': 7*24*3600,
|
||||
#XXX should really be called expired_repo_lifetime
|
||||
'sleeptime' : 15,
|
||||
'cert': '/etc/kojira/client.crt',
|
||||
'ca': '/etc/kojira/clientca.crt',
|
||||
'serverca': '/etc/kojira/serverca.crt'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue