fast-vr-44972
01/23/2024, 9:59 PMget_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.
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.
# terminal
export METAFLOW_PROFILE=dev
# run some python script