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
Support specifying a conda/virtual environment to use in the LocalRun
run-config
#3706
Comments
This would definitely be appreciated by my team |
I concur that the first option is confusing. We could perhaps get away with just |
There's a hacky workaround for this that I just tested. Not sure if it's the right way to do things but technically, if you setup a virtual environment, register the flow from THAT virtual environment and then actually start a specific agent with specific labels from that environment, it should work. Technically, you'd be running two separate local agents on the same computer essentially. Not syncing the registering environment and the agent environment ends up something like below
|
We're implementing this in Orion, so I'll close this for now. |
Can we do this so far with Orion ? I did not find info in the doc |
This will be included in the next Orion release :) |
I'm interested in this feature as well, but don't see any reference in the changelog yet, just want to double check, by next Orion release with this feature do you mean next major release (i.e. 1.0)? Thanks! |
Orion was our code name for the 2.0 version. This feature is included in 2.0a7. It won't be included in 1.0. |
When deploying a flow locally using a
LocalRun
run-config, it would be useful to support running a flow using a different python environment than the one the agent is currently running. This would let users create and deploy flows using isolated environments (i.e. a conda environment per flow).The types of environments we'd like to support:
python3.8
) or full path to interpreterWe could do this with either:
A single kwarg (
python_env
?) that takes in a URI where the scheme specifies the type of environment. This is also used bydask-yarn
, but may be non-intuitive. Examples:python_env="conda://my-env"
: a conda environment by namepython_env="conda:///full/path/to/env"
: a conda env by pathpython_env="venv:///full/path/to/venv"
: a virtual environment by pathpython_env="python:///full/path/to/python"
: full path to a python interpreterOne kwarg for each type. Specifying multiple kwargs is an error (can't have both a conda and venv). Examples:
conda_env="my-env"
: a conda environment by nameconda_env="/full/path/to/env"
: a conda environment by full pathvirtual_env="/full/path/to/env"
: a virtual environment by full pathpython_env="/full/path/to/python"
: full path to a python interpreterpython_env="python3.8"
: python interpreter command nameI'm leaning towards the second option, as it seems clearer to me.
The text was updated successfully, but these errors were encountered: