Skip to content

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
@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