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

Don't restart worker unnecessarily when there are no deps to install #2755

Merged

Conversation

RunDevelopment
Copy link
Member

The condition if len(to_install) > 0: was always true, because to_install contains the dependencies the worker requires and not the dependencies that pip will install. So I changed the condition to filter out deps that are already installed before. This means that the worker won't be started, stopped, and then started again anymore.

@joeyballentine joeyballentine merged commit 8a66ee6 into chaiNNer-org:main Apr 7, 2024
14 checks passed
@RunDevelopment RunDevelopment deleted the prevent-unnecessary-restart branch April 7, 2024 22:10
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.

None yet

2 participants