Hello, a dumb question, I am aware that prefect Parameters are used to define flow inputs. What would happen if I use python variables that were defined out of the flow instead of define Parameters and adding the variables in flow.run?
c
Christopher
02/15/2022, 8:35 AM
You lose the ability to define them when the flow is executed in different ways (e.g. triggered by an Agent on a schedule or through the web UI)
upvote 2
a
Antonio Manuel BR
02/15/2022, 8:50 AM
So, for a Prefect core user, it makes no differences?
c
Christopher
02/15/2022, 9:24 AM
I don't feel confident saying there are no other differences, but that was one I could think of!
🙂 1
👍 1
a
Anna Geller
02/15/2022, 10:25 AM
Even if you run it locally, using Parameters makes it easy to replace the parameter values at runtime without having to implement any argparser e.g.:
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.