Skip to content

ppai/image-classification: add exponential retries to download file #6668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

davidcavazos
Copy link
Contributor

Description

Fixes #6463

Even though the Connection reset by peer is a transient error and we can't do much to solve it on our side, we retry the request with exponential backoff and hopefully it'll work at some point. This will hopefully decrease the number of flaky test runs.

Checklist

@davidcavazos davidcavazos requested a review from a team as a code owner September 7, 2021 16:04
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Sep 7, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 7, 2021
@dandhlee
Copy link
Collaborator

dandhlee commented Sep 7, 2021

3.8 Failed with this error:

Traceback (most recent call last):
  File "/workspace/people-and-planet-ai/image-classification/e2e_test.py", line 111, in model_endpoint_id
    deployed_model_id = deploy_model.deploy_model(
  File "/workspace/people-and-planet-ai/image-classification/deploy_model.py", line 80, in deploy_model
    deployed_model = response.result()
  File "/workspace/people-and-planet-ai/image-classification/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py", line 135, in result
    raise self._exception
google.api_core.exceptions.ResourceExhausted: 429 The following quotas are exceeded: AutoMLImageClassificationDeployedModelNodes

@dandhlee dandhlee added the automerge Merge the pull request once unit tests and other checks pass. label Sep 8, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit a5c2f3e into GoogleCloudPlatform:master Sep 8, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 8, 2021
@davidcavazos davidcavazos deleted the ppai-image-classification branch September 8, 2021 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

people-and-planet-ai.image-classification.e2e_test: test_predict failed
3 participants