changeset 451:57822fefd441

Fix default for poll interval of slave.
author cmlenz
date Thu, 30 Aug 2007 08:07:22 +0000
parents 9d0651c819a8
children 3e76acd5563b
files bitten/slave.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/slave.py
+++ b/bitten/slave.py
@@ -58,7 +58,7 @@
 
     def __init__(self, url, name=None, config=None, dry_run=False,
                  work_dir=None, keep_files=False, single_build=False,
-                 poll_interval=60, username=None, password=None,
+                 poll_interval=300, username=None, password=None,
                  dump_reports=False):
         """Create the build slave instance.
         
@@ -74,7 +74,8 @@
         :param single_build: whether this slave should exit after completing a 
                              single build, or continue processing builds forever
         :param poll_interval: the time in seconds to wait between requesting
-                              builds from the build master
+                              builds from the build master (default is five
+                              minutes)
         :param username: the username to use when authentication against the
                          build master is requested
         :param password: the password to use when authentication is needed
@@ -312,7 +313,7 @@
 
     parser.set_defaults(dry_run=False, keep_files=False,
                         loglevel=logging.INFO, single_build=False,
-                        dump_reports=False)
+                        dump_reports=False, interval=300)
     options, args = parser.parse_args()
 
     if len(args) < 1:
Copyright (C) 2012-2017 Edgewall Software