Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(949)

Unified Diff: scripts/slave/build_scan.py

Issue 2235063003: Add logging to build_scan.py for url retries (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/build_scan.py
diff --git a/scripts/slave/build_scan.py b/scripts/slave/build_scan.py
index 1561c0db36e5938db2a9f1c1fcb683d2af2679e8..410bd05073ab5b38f94be8ba5639701ef90d1c75 100755
--- a/scripts/slave/build_scan.py
+++ b/scripts/slave/build_scan.py
@@ -38,7 +38,12 @@ def _url_open_json(url):
raise
attempts += 1
- time.sleep(2 ** attempts)
+ time_to_sleep = 2 ** attempts
+ logging.info(
+ "url fetch encountered %s, sleeping for %d seconds and retrying..." % (
+ f, time_to_sleep))
+
+ time.sleep(time_to_sleep)
def get_root_json(master_url):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698