https://prefect.io logo
m

Martim Lobao

04/25/2022, 2:58 PM
is there a way to register different flows so that they are run with different environment variables? something like
Copy code
Flow.register("foo", extra_env_variables={"ENV": "foo"})
Flow.register("bar", extra_env_variables={"ENV": "bar"})
k

Kevin Kho

04/25/2022, 3:01 PM
The RunConfig takes an
env
parameter. You would add it there
m

Martim Lobao

04/25/2022, 3:04 PM
ah, perfect, i think this is exactly what i was looking for, thanks @Kevin Kho 🙂
👍 1
6 Views