Bug 1288573 - Sleep bettween retries r=jlund
authorRail Aliiev <rail@mozilla.com>
Fri, 02 Sep 2016 14:21:55 -0400
changeset 7003 4e0eca3d8476de1a981bd62f3862066d46683406
parent 7002 833477b826d039292ec8fb36b521a4e0f4f13258
child 7004 909acc71d0ecfe8df8f5894e8b2756beaefb23f9
push id5224
push userraliiev@mozilla.com
push dateFri, 02 Sep 2016 18:36:51 +0000
reviewersjlund
bugs1288573
Bug 1288573 - Sleep bettween retries r=jlund MozReview-Commit-ID: CVNh4yvU4El
buildfarm/release/release-runner.py
--- a/buildfarm/release/release-runner.py
+++ b/buildfarm/release/release-runner.py
@@ -443,16 +443,19 @@ def main(options):
                 release,
                 'Failed to start release promotion (graph ID: %s)' % graph_id)
             log.exception("Failed to start release promotion for graph %s %s",
                           graph_id, release)
 
     if rc != 0:
         sys.exit(rc)
 
+    log.debug('Sleeping for %s seconds before polling again', sleeptime)
+    time.sleep(sleeptime)
+
 if __name__ == '__main__':
     parser = OptionParser(__doc__)
     parser.add_option('-l', '--lockfile', dest='lockfile',
                       default=path.join(os.getcwd(), ".release-runner.lock"))
     parser.add_option('-c', '--config', dest='config',
                       help='Configuration file')
 
     options = parser.parse_args()[0]