With 2.0 and the new deployment-methods, what is the best way to pass dynamic variables (equivalent to sys.args) if you want to start a flow run with different inputs?
I've been reading the docs (here) on Flows and Deployments, and from what I gather, we pass the parameters as a dictionary. But I cannot see any examples on how to "receive" said parameters in the flow (akin to retrieving and assigning sys.args to variables)
✅ 1
z
Zanie
09/07/2022, 8:26 PM
Flow run parameters are passed as arguments to the flow function
Zanie
09/07/2022, 8:27 PM
So if I have
Copy code
@flow
def foo(x, y, z=3):
...
I can set my parameters to
{"x": 1, "y": 2}
or
{"x": 1, "y": 2, "z": -1}
✅ 1
👀 1
s
Stefan
09/07/2022, 9:11 PM
That was easier than the docs made it out to be. Thank you very much 🙂
And that's the same way to specify inputs when running from the UI?
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.