clipper icon indicating copy to clipboard operation
clipper copied to clipboard

Unregistering an application, and then registering again with different output doesn't change the output

Open utkarsh867 opened this issue 5 years ago • 0 comments

To delete, I do the following:

def delete_model(name):
    clipper_conn = ClipperConnection(DockerContainerManager())
    clipper_conn.connect()
    clipper_conn.unlink_model_from_app("sample-app", "sample1")
    clipper_conn.stop_models(["sample1"])
    clipper_conn.unregister_application("sample-app")

To register and deploy:

    clipper_conn.register_application(
        name="sample-app", input_type="integers", default_output="-1.0", slo_micros=10000000)
    clipper_conn = ClipperConnection(DockerContainerManager())
    clipper_conn.connect()

    clipper_conn.build_and_deploy_model(
        name="sample1",
        version=1,
        input_type="integers",
        model_data_path="/Users/utkarsh/dev/deploifai/server/model",
        base_image="sample:dev"
    )
    clipper_conn.stop_inactive_model_versions(["sample1"])
    clipper_conn.link_model_to_app(app_name="sample-app", model_name="sample1")

I understand that the version number must change for deploying updates. But I want to be able to completely delete the application and register with same name and version. Now that is possible, but if I delete the application and re-create it, and deploy with version=1 the output does not change even when I change the code in model_data_path directory.

For the changes to reflect, I have to stop_all().

Is there any caching that I am missing?

utkarsh867 avatar Jan 24 '21 09:01 utkarsh867