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

bug: downloaded dynamic state for services without verification for binaries #425

Open
swarnimarun opened this issue Oct 26, 2023 · 2 comments

Comments

@swarnimarun
Copy link
Contributor

swarnimarun commented Oct 26, 2023

Issue:

Downloaded services are fetched based on just if models are present locally at application start, but not updated before each service run, hence manifests and binary files aren't rechecked if they are actually correct or present locally.

This can currently cause the application to fail without letting the user know of the exact method to fix this issue. (They just need to delete and reinstall it)

The two most likely scenarios are:

  • If the serve command has changed and requires a new binary, it will fail to run.
  • If the binary is not present locally, it will fail to run.

Solution

Always check if the files are locally present(we currently do check for weights, on prem-app startup, but we don't do this for binaries at all) and if the checksums are upto date(#423), before starting the service.
And forward meaningful error messages to the user.

@Janaka-Steph
Copy link
Contributor

Janaka-Steph commented Oct 26, 2023

Downloaded services are marked downloaded in persistent state(zustand)

I don't think this is the case. To which state are you referring to?

Always check if the files are locally present(we currently do this for binaries, but we don't do this for weights)

This is the contrary. is_service_downloaded() is checking for weights but not the binary.

@swarnimarun swarnimarun changed the title bug: due to persistent state for downloaded services without verification bug: downloaded dynamic state for services without verification for binaries Oct 27, 2023
@swarnimarun
Copy link
Contributor Author

Downloaded services are marked downloaded in persistent state(zustand)

I don't think this is the case. To which state are you referring to?

Always check if the files are locally present(we currently do this for binaries, but we don't do this for weights)

This is the contrary. is_service_downloaded() is checking for weights but not the binary.

  1. Yep you are correct, I confused a zustand state with dynamic state for services.
  2. yea meant to write it the other way around clarified it all a bit.

@tiero tiero closed this as completed Oct 30, 2023
@tiero tiero reopened this Nov 1, 2023
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

3 participants