From: Zack Cerza Date: Tue, 31 Dec 2013 20:25:05 +0000 (-0600) Subject: Sleep once outside of the watchdog loop X-Git-Tag: 1.1.0~1711 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b4f524ebe4fce8a35f008fa37c0dd7d38feec23c;p=teuthology.git Sleep once outside of the watchdog loop Hopefully this will prevent the double-posting of jobs. Signed-off-by: Zack Cerza --- diff --git a/teuthology/queue.py b/teuthology/queue.py index 1cedb11ec..eb45f9900 100644 --- a/teuthology/queue.py +++ b/teuthology/queue.py @@ -209,6 +209,8 @@ def run_with_watchdog(process, job_config): job_id=job_config['job_id'], ) + # Sleep once outside of the loop to avoid double-posting jobs + time.sleep(teuth_config.watchdog_interval) while process.poll() is None: report.try_push_job_info(job_info, dict(status='running')) time.sleep(teuth_config.watchdog_interval)