Skip to content

Avoid restarting backend if no deps installed #2650

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

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

joeyballentine
Copy link
Member

This PR moves the usage of get_deps_to_install to outside of the installing deps functions. This makes it so that we can choose to not restart the executor server if there are no dependencies installed, which should speed up startup times.

@RunDevelopment
Copy link
Member

Not a fan. You basically just added an invisible pre-condition to for install_dependencies{,_sync}. Just make those functions return how many dependencies changed (or something similar).

@joeyballentine joeyballentine force-pushed the dont-restart-if-no-deps branch from a65a2bc to e0f849c Compare March 5, 2024 23:50
@joeyballentine joeyballentine changed the title Move dependencies-to-install filter to avoid restarting backend Avoid restarting backend if no deps installed Mar 5, 2024
@joeyballentine
Copy link
Member Author

Replaced the other implementation with what you suggested

@joeyballentine joeyballentine merged commit ee86b01 into main Mar 8, 2024
@joeyballentine joeyballentine deleted the dont-restart-if-no-deps branch March 8, 2024 16:38
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