Skip to content

Commit

Permalink
chore: increased timeout by 200s to reduce flakiness (#155)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
parthea authored and dandhlee committed Nov 15, 2022
1 parent a385f4c commit 16c4773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion vision/snippets/product_search/product_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 16c4773

Please sign in to comment.