Hi, we see very weird behaviour with `get_metadata...
# ask-metaflow
f
Hi, we see very weird behaviour with
get_metadata
. We are trying to fetch information about remote flows that was ran using argo workflow in our python code. But even when we set
METAFLOW_PROFILE=<correct_env>
,
get_metadata
is just returning local metadata.
Copy code
import os
os.environ["METAFLOW_PROFILE"] = "dev"
print(get_metadata())
This only works when we export env variable in our local terminal and run the code.
Copy code
# terminal
export METAFLOW_PROFILE=dev

# run some python script
1