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

Always stop backend before start if updating/installing deps #2748

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

joeyballentine
Copy link
Member

I was right. This was a general issue caused by us not stopping the worker server (which is using the deps) before updating. So, onnx wasn't able to be deleted since it was locked by the OS.

So, I replaced the restart that only happens if anything installed, to just always stop > install > start. I initially had it this way but changed it since i thought it would optimize startup a bit, but it seems to only cause more issues.

this could potentially be resolved by some refactoring where this bit of code could only stop the server if there is a dep that is already installed that's just being updated, but for now this works.

@joeyballentine joeyballentine changed the title Always restart backend if updating/installing deps before start Always stop backend before start if updating/installing deps Apr 5, 2024
@joeyballentine joeyballentine merged commit d8675de into main Apr 6, 2024
14 checks passed
@joeyballentine joeyballentine deleted the fix-auto-update branch April 6, 2024 13:02
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

Successfully merging this pull request may close these issues.

2 participants