[ews-app] fetch loop should not stop on network issues
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2019 00:04:23 +0000 (00:04 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2019 00:04:23 +0000 (00:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193666

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-app/ews/fetcher.py:
(FetchLoop.run): Ensure that fetch loop doesn't exit on any exception.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240303 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-app/ews/fetcher.py
Tools/ChangeLog

index c6ab076..05efb64 100644 (file)
@@ -40,7 +40,10 @@ class FetchLoop():
 
     def run(self):
         while True:
-            BugzillaPatchFetcher().fetch()
+            try:
+                BugzillaPatchFetcher().fetch()
+            except Exception as e:
+                _log.error('Exception in BugzillaPatchFetcher: {}'.format(e))
             time.sleep(self.interval)
 
 
index b1eb991..3165bd5 100644 (file)
@@ -1,3 +1,13 @@
+2019-01-22  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-app] fetch loop should not stop on network issues
+        https://bugs.webkit.org/show_bug.cgi?id=193666
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/fetcher.py:
+        (FetchLoop.run): Ensure that fetch loop doesn't exit on any exception.
+
 2019-01-22  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [iOS] Multiple WKWebViewAutofillTests are flaky failures