Hi, what’s the best way to switch certain flow variables depending on execution environment? e.g. a database schema of dev vs prod? (I am using set_run_config method at the moment to switch execution between local and ECS)
k
Kevin Kho
05/05/2022, 5:59 PM
I think it’s hard inside a flow to know what the run_config is so parameters would be the best way if you can do that, and then change the parameters based on that
j
Jonathan Mathews
05/05/2022, 6:30 PM
ok got it, thanks
n
Nate
05/05/2022, 7:49 PM
just adding on: you could have those parameters default to environment variables that you'd define on each runtime and retrieve via
os.getenv
or something, that way you can assume env specific settings without changing your code / parameter values directly
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.