-
Notifications
You must be signed in to change notification settings - Fork 280
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
Implement delete_versioned_model API #602
Implement delete_versioned_model API #602
Conversation
Can one of the admins verify this patch? |
910f587
to
fa5502a
Compare
Hey guys, I'm not getting the changes when installed using pip. Has this not been pushed in master yet? |
@avinregmi : This pull request was NOT merged with |
* Remove the specified versions of the specified models from Clipper internal. * Implemented `unregister_versioned_models` Clipper API in clipper_admin. > Description > ----------- > unregister_versioned_models(model_versions_dict) > Parameters > ---------- > model_versions_dict : dict(str, list(str)) > For each entry in the dict, the key is a model name and the value is a list of model > Raises > ------ > :py:exc:`clipper.UnconnectedException` > versions. All replicas for each version of each model will be stopped. * Implemented `delete_versioned_model` Management-Frontend API. > API path > -------- > POST /admin/delete_versioned_model > Request schema > -------------- > const std::string DELETE_VERSIONED_MODEL_JSON_SCHEMA = R"( > { > "model_name" := string, > "model_version" := string, > } > )";
fa5502a
to
28a2adf
Compare
jenkins test this please |
Test FAILed. |
Jenkins ok to test |
Test FAILed. |
jenkins test this please |
Test FAILed. |
This patch is needed to retry if 'docker push' fails. I found this error case through ucbrise#602 (comment).
jenkins test this please |
Test FAILed. |
Test FAILed. |
* Add retry-routine to 'docker push' in clipper_docker.cfg.py This patch is needed to retry if 'docker push' fails. I found this error case through #602 (comment). * Move wait_and_pull_cmd() and wait_and_push_cmd() to proper location
Test FAILed. |
The latest Jenkins job shows me that the TaskExecutor has some bugs. I will try to debug it tonight. |
Test FAILed. |
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/2012/ shows,
|
jenkins test this please |
Test PASSed. |
@withsmilo Will review once the last test is added! I am a little busy this week. |
* TestDeleteVersionedModelCorrect * TestDeleteVersionedModelMissingField * TestDeleteVersionedModelForNonexistentModel
…_versioned_models_python_api
Test FAILed. |
Test FAILed. |
* TestDeleteVersionedModelForInvalidModel
Test FAILed. |
Test FAILed. |
Test PASSed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@withsmilo great work! thank you for implementing this. This is the missing piece in the Clipper API
Implement delete_versioned_model API (ucbrise#602)
1. in brief
2. TODO
unregister_versioned_models
Clipper API in clipper_admindelete_versioned_model
Management-Frontend API3. non-public
_unregister_versioned_models
Clipper API in clipper_adminDescription
Unregister the specified versions of the specified models from Clipper internal.
This function does not be opened to public because it might cause critical operation.
Please use
stop_models
,stop_versioned_models
,stop_inactive_model_versions
, andstop_all_model_containers
APIs according to your need.Parameters
Raises
4.
delete_versioned_model
Management-Frontend APIAPI path
Request schema