From 5aa40e3cfdf13d0b487edb57fcd39bb4b2be0e53 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 15 Mar 2021 14:10:02 -0700 Subject: [PATCH] chore: increased designed timeout by 1 minute (#110) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #108 🦕 I ran 418 times to repro this error but Instead I got DeadlineExceeded exception. Then, on the second attempt, I ran 78 times to repro this error. this error occurs very randomly, I am not sure if its some kind of backend timeout or throttling. First attempt to fix this --> increasing timeout If this won't work, i will increase it to 4 min. If that doesn't work, I will raise this issue as P1. --- videointelligence/samples/quickstart/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videointelligence/samples/quickstart/quickstart.py b/videointelligence/samples/quickstart/quickstart.py index 89f75d866825..94f2d689d1a3 100644 --- a/videointelligence/samples/quickstart/quickstart.py +++ b/videointelligence/samples/quickstart/quickstart.py @@ -37,7 +37,7 @@ def run_quickstart(): ) print("\nProcessing video for label annotations:") - result = operation.result(timeout=120) + result = operation.result(timeout=180) print("\nFinished processing.") # first result is retrieved because a single video was processed