]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Change default results_timeout to 12h 412/head
authorZack Cerza <zack@redhat.com>
Mon, 19 Jan 2015 23:56:31 +0000 (16:56 -0700)
committerZack Cerza <zack@redhat.com>
Tue, 20 Jan 2015 17:33:22 +0000 (10:33 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
docs/siteconfig.rst
scripts/suite.py
teuthology/config.py
teuthology/worker.py

index a8621c38807c202c23eb0053a0bfe40d800810c3..1ec42e802ea9f012542313ffc26f4f1415a5634d 100644 (file)
@@ -40,6 +40,10 @@ Here is a sample configuration with many of the options set and documented::
     # Email address that job results summaries originate from
     results_sending_email: teuthology@example.com
 
+    # How long (in seconds) teuthology-results should wait for jobs to finish
+    # before considering them 'hung'
+    results_timeout: 43200
+
     # Gitbuilder archive that stores e.g. ceph packages
     gitbuilder_host: gitbuilder.example.com
 
index d39a7aeb411249830e295c794a0e94b8a3c8372d..088b20c23f976346629ebc5d1deb8c85fac26321 100644 (file)
@@ -64,14 +64,15 @@ Scheduler arguments:
                               [default: 1000]
   --timeout <timeout>         How long, in seconds, to wait for jobs to finish
                               before sending email. This does not kill jobs.
-                              [default: 32400]
+                              [default: {default_results_timeout}]
   --filter KEYWORDS           Only run jobs whose name contains at least one
                               of the keywords in the comma separated keyword
                               string specified.
   --filter-out KEYWORDS       Do not run jobs whose name contains any of
                               the keywords in the comma separated keyword
                               string specified.
-""".format(default_machine_type=config.default_machine_type)
+""".format(default_machine_type=config.default_machine_type,
+           default_results_timeout=config.results_timeout)
 
 
 def main():
index 78cb8e91257d6b331c68a51d18f6648e8297397b..ba478628c25efb69e67b749b44960948f732dc7d 100644 (file)
@@ -134,6 +134,7 @@ class TeuthologyConfig(YamlConfig):
         'max_job_time': 259200,  # 3 days
         'results_server': 'http://paddles.front.sepia.ceph.com/',
         'results_sending_email': 'teuthology',
+        'results_timeout': 43200,
         'src_base_path': os.path.expanduser('~/src'),
         'verify_host_keys': True,
         'watchdog_interval': 120,
index a1567d897bfaad08f1a456cf4810ce4ccf13d9e5..f94c07e603a12f2e5ac1ca43b8602ccb329487ee 100644 (file)
@@ -145,7 +145,8 @@ def main(ctx):
             args = [
                 os.path.join(teuth_bin_path, 'teuthology-results'),
                 '--timeout',
-                str(job_config.get('results_timeout', 32400)),
+                str(job_config.get('results_timeout',
+                                   teuth_config.results_timeout)),
                 '--email',
                 job_config['email'],
                 '--archive-dir',