From fa72ccffc33cd433d788ef2bed27c8a735188fdd Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Thu, 20 May 2021 09:24:53 -0700 Subject: [PATCH] chore: increased timeout again attemp #2 (#492) * chore: increased timeout again attemp #2 * added missing part --- .../src/main/java/documentai/v1/BatchProcessDocument.java | 2 +- .../src/main/java/documentai/v1beta2/BatchParseFormBeta.java | 2 +- .../src/main/java/documentai/v1beta2/BatchParseTableBeta.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java b/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java index 0a853a0c059..efee05e61ec 100644 --- a/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java +++ b/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java @@ -106,7 +106,7 @@ public static void batchProcessDocument( // Note: first request to the service takes longer than subsequent // requests. System.out.println("Waiting for operation to complete..."); - future.get(180, TimeUnit.SECONDS); + future.get(240, TimeUnit.SECONDS); System.out.println("Document processing complete."); diff --git a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java index ed61ad37b0c..fe1efb75b88 100644 --- a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java +++ b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java @@ -128,7 +128,7 @@ public static void batchParseFormGcs( // Wait for operation to complete. System.out.println("Waiting for operation to complete..."); - future.get(300, TimeUnit.SECONDS); + future.get(360, TimeUnit.SECONDS); System.out.println("Document processing complete."); diff --git a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java index dacaed9510b..bef6031553b 100644 --- a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java +++ b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java @@ -131,7 +131,7 @@ public static void batchParseTableGcs( // Wait for operation to complete. System.out.println("Waiting for operation to complete..."); - future.get(300, TimeUnit.SECONDS); + future.get(360, TimeUnit.SECONDS); System.out.println("Document processing complete.");