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
dry-beach-38304
07/24/2024, 6:43 AM
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
wooden-dusk-90720
07/24/2024, 3:36 PM
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
ancient-application-36103
07/24/2024, 4:25 PM
you can look at the entrypoint in the batch console and infer the env id from the python executable path
d
dry-beach-38304
07/25/2024, 8:01 AM
[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.