From 9f168f38773d0bb3874fb36e019deb86fbd8df84 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 31 May 2021 11:18:02 -0400 Subject: [PATCH] chore: increased timeout by 200s to reduce flakiness (#155) In PR #152, the samples check for python [3.6](https://source.cloud.google.com/results/invocations/8b495204-fef4-4ceb-a87d-eeac130e67ce/log) and [3.8](https://source.cloud.google.com/results/invocations/68598456-9dff-4c94-8427-f777075828e2/log) failed with error `google.api_core.exceptions.RetryError: Deadline of 300.0s exceeded while calling functools.partial(>)`. This PR attempts to reduce flakiness by increasing the timeout from 300s to 500s. --- .../product_search/product_in_product_set_management.py | 2 +- .../samples/snippets/product_search/product_management.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-vision/samples/snippets/product_search/product_in_product_set_management.py b/packages/google-cloud-vision/samples/snippets/product_search/product_in_product_set_management.py index 282bc8d8f9a3..5dec3c2a9bc3 100755 --- a/packages/google-cloud-vision/samples/snippets/product_search/product_in_product_set_management.py +++ b/packages/google-cloud-vision/samples/snippets/product_search/product_in_product_set_management.py @@ -147,7 +147,7 @@ def purge_products_in_product_set( "force": force }) - operation.result(timeout=300) + operation.result(timeout=500) print('Deleted products in product set.') # [END vision_product_search_purge_products_in_product_set] diff --git a/packages/google-cloud-vision/samples/snippets/product_search/product_management.py b/packages/google-cloud-vision/samples/snippets/product_search/product_management.py index 96eb587292c7..75697ddfa699 100755 --- a/packages/google-cloud-vision/samples/snippets/product_search/product_management.py +++ b/packages/google-cloud-vision/samples/snippets/product_search/product_management.py @@ -206,7 +206,7 @@ def purge_orphan_products(project_id, location, force): "force": force }) - operation.result(timeout=300) + operation.result(timeout=500) print('Orphan products deleted.') # [END vision_product_search_purge_orphan_products]