how do i figure out the conda env that my Batch jo...
# ask-metaflow
w
how do i figure out the conda env that my Batch job runs with? ie the value of
export _METAFLOW_CONDA_ENV=$(cat _env_id)
1
d
during the run, you should be able to use that value (it should be in os.environ). After the run, it is in the task_metadata for your task.
w
Is there a way to see the value without going through the metaflow API? I know I can get at the value during the run, but I didn't log it 🫥
a
you can look at the entrypoint in the batch console and infer the env id from the python executable path
d
[this was stuck in my out] I mean, it’s in the db that stores the metadata (which is what the metaflow client fronts) if you want to not use the client.