Skip to content
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

sagemaker deployment - handle endpoint not found for sagemaker delete #522

Merged
merged 3 commits into from
Feb 11, 2020

Conversation

yubozhao
Copy link
Contributor

@yubozhao yubozhao commented Feb 10, 2020

fix for #504

@yubozhao yubozhao requested a review from parano February 10, 2020 23:22
@yubozhao yubozhao changed the title fix #504 - handle endpoint not found for sagemaker delete sagemaker deployment - handle endpoint not found for sagemaker delete Feb 10, 2020
@codecov-io
Copy link

codecov-io commented Feb 10, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@40849b2). Click here to learn what that means.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #522   +/-   ##
=========================================
  Coverage          ?   56.41%           
=========================================
  Files             ?       89           
  Lines             ?     6434           
  Branches          ?        0           
=========================================
  Hits              ?     3630           
  Misses            ?     2804           
  Partials          ?        0
Impacted Files Coverage Δ
bentoml/deployment/sagemaker/__init__.py 79.93% <60%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40849b2...79f2cf2. Read the comment docs.

not error_code == 'ValidationException'
or 'Could not find endpoint' not in error_message
):
raise _aws_client_error_to_bentoml_exception(e)

_try_clean_up_sagemaker_deployment_resource(deployment_pb)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed offline, let's add function delete_sagemaker_endpoint_if_exist, and call this function in _try_clean_up_sagemaker_deployment_resource.

rename _try_clean_up_sagemaker_deployment_resource to _delete_sagemaker_deployment_resource_if_exist

@parano parano merged commit 5442dbd into bentoml:master Feb 11, 2020
bojiang pushed a commit to bojiang/BentoML that referenced this pull request Feb 13, 2020
…bentoml#522)

* handle endpoint not exist for sagemaker delete

* include delete endpoint in clean up function

* update sagemaker moto
aarnphm pushed a commit to aarnphm/BentoML that referenced this pull request Jul 29, 2022
…bentoml#522)

* handle endpoint not exist for sagemaker delete

* include delete endpoint in clean up function

* update sagemaker moto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants