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

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

Open
utkarsh867 opened this issue Jan 24, 2021 · 0 comments

Comments

@utkarsh867
Copy link

utkarsh867 commented Jan 24, 2021

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?

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

No branches or pull requests

1 participant