Open QuentinAmbard opened 4 months ago
I am also longing for this kind of function!
At least having an endpoint_exists
function would be a good first step.
alternative to iteration
def does_serving_endpoint_already_exist(self, endpoint_name):
try:
workspace_client.serving_endpoints.get(endpoint_name)
except DatabricksError as error:
if error.error_code == "RESOURCE_DOES_NOT_EXIST":
return False
else:
raise error
return True
Problem Statement We often have to create or update an endpoint. Currently we do things like this which is a lot of code:
Proposed Solution Instead we could add functions such as
w.serving_endpoints.create_or_update(xxx)
orw.serving_endpoints.create_or_update_and_wait(xxx)