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

Make Worker handle installation of new packages #185

Open
edavalosanaya opened this issue Apr 25, 2023 · 1 comment
Open

Make Worker handle installation of new packages #185

edavalosanaya opened this issue Apr 25, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request prio:medium Priority Level: Medium

Comments

@edavalosanaya
Copy link
Collaborator

No description provided.

@umesh-timalsina
Copy link
Contributor

umesh-timalsina commented Apr 26, 2023

An example Scenario:

@requires_packages(package_a, package_b, package_c)
class CustomNode(cp.Node):
         _requires_pacakges: ClassVar[List[str]] = []


class WorkerPackageInstallationService:
     installer: installer
     sudocode: before_node_unpickle
     installer.install(nodes_metadata.required_pacakges)
     

The installation service should be installed on a worker, a agnostic wrapper that has the following:

  1. Detect if conda environment
  2. Detect if pip environment
  3. installs packages
  4. uninstalls packages

Per node installation might make more sense. Does adding them without using REST calls make more sense?

@edavalosanaya edavalosanaya self-assigned this Jun 6, 2023
@edavalosanaya edavalosanaya added enhancement New feature or request prio:medium Priority Level: Medium labels Jun 6, 2023
@edavalosanaya edavalosanaya added this to the ChimeraPy v0.2.0 milestone Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio:medium Priority Level: Medium
Projects
Status: Backlog
Development

No branches or pull requests

2 participants