yaq-project / yaqd-control

Command line tools for inspecting and controlling yaq daemons.
https://control.yaq.fyi
GNU Lesser General Public License v3.0
2 stars 3 forks source link

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

Open ddkohler opened 2 years ago

ddkohler commented 2 years ago

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

ksunden commented 2 years ago

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

probably part of the solution

ddkohler commented 2 years ago

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

ddkohler commented 11 months ago

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.