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

cannot run daemons in background with non-base conda environment #9

Open
ddkohler opened this issue Jul 14, 2022 · 3 comments
Open

Comments

@ddkohler
Copy link
Contributor

If daemons are installed in the non-default conda environment, nssm fails to start them.

@ksunden
Copy link
Member

ksunden commented Jul 14, 2022

https://docs.conda.io/projects/conda/en/latest/commands/run.html

probably part of the solution

@ddkohler
Copy link
Contributor Author

Proposed solution: On Windows, yaqd enable will accept an environment kwarg. environment will be stored in the cache for each daemon.

@ddkohler ddkohler mentioned this issue Nov 16, 2023
@ddkohler
Copy link
Contributor Author

This issue is less impactful than I thought.

Firstly, yaqd-control can install daemons in the non-default conda environment. We just have to run yaqd enable [kind] in the environment we wish for the daemon to be run. If yaqd-control (and dependencies) cannot be installed/operated in the daemon environment, then this does not work, but this is likely an uncommon case.

Secondly, it's pretty obvious, but it should be noted that one can edit the paths of the background process manually yaqd nssm edit [kind] to run in your target environment.

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

No branches or pull requests

2 participants