With 2.0 and the new deployment-methods, what is t...
# best-practices
s
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
Flow run parameters are passed as arguments to the flow function
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
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?