Skip to content

Commit 16c4773

Browse files
partheadandhlee
authored andcommitted
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(<bound method PollingFuture._done_or_raise of <google.api_core.operation.Operation object at 0x7fc93a31c0b8>>)`. This PR attempts to reduce flakiness by increasing the timeout from 300s to 500s.
1 parent a385f4c commit 16c4773

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vision/snippets/product_search/product_in_product_set_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def purge_products_in_product_set(
147147
"force": force
148148
})
149149

150-
operation.result(timeout=300)
150+
operation.result(timeout=500)
151151

152152
print('Deleted products in product set.')
153153
# [END vision_product_search_purge_products_in_product_set]

vision/snippets/product_search/product_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def purge_orphan_products(project_id, location, force):
206206
"force": force
207207
})
208208

209-
operation.result(timeout=300)
209+
operation.result(timeout=500)
210210

211211
print('Orphan products deleted.')
212212
# [END vision_product_search_purge_orphan_products]

0 commit comments

Comments
 (0)