]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
supervisor: Ignore some reporting failures 1816/head
authorZack Cerza <zack@redhat.com>
Tue, 28 Feb 2023 00:47:33 +0000 (17:47 -0700)
committerZack Cerza <zack@redhat.com>
Tue, 28 Feb 2023 00:47:33 +0000 (17:47 -0700)
Specifically, the pings coming from the watchdog loop

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/dispatcher/supervisor.py

index d7a695475d1033d612b15ac1a7084c47c9380a5e..bf1c02528724fe14cd02b4874a67291b011e2e4d 100644 (file)
@@ -12,7 +12,7 @@ import teuthology
 from teuthology import report
 from teuthology import safepath
 from teuthology.config import config as teuth_config
-from teuthology.exceptions import SkipJob
+from teuthology.exceptions import SkipJob, MaxWhileTries
 from teuthology import setup_log_file, install_except_hook
 from teuthology.lock.ops import reimage_machines
 from teuthology.misc import get_user, archive_logs, compress_logs
@@ -299,7 +299,10 @@ def run_with_watchdog(process, job_config):
                 log.exception('Failed to kill job and unlock machines')
 
         # calling this without a status just updates the jobs updated time
-        report.try_push_job_info(job_info)
+        try:
+            report.try_push_job_info(job_info)
+        except MaxWhileTries:
+            log.exception("Failed to report job status; ignoring")
         time.sleep(teuth_config.watchdog_interval)
 
     # we no longer support testing theses old branches