https://prefect.io logo
Title
g

Graham Mattox

06/06/2022, 1:54 PM
Hi, I’d like to understand what the equivalents to the methods for parameterizing flows described in this article https://www.prefect.io/guide/blog/how-to-make-your-data-pipelines-more-dynamic-using-parameters-in-prefect/ are (or will be) in prefect 2.0 I have done a bit of googling and searching through the threads in this slack space and not found a solid answer (but if you know of one please direct me) thanks a bunch!!
k

Kevin Kho

06/06/2022, 2:31 PM
For the passing of parameters, it’s just the input into the flow function. So you can just call it like a normal function as pass in the parameter value.
And then for “registration”, you’d give the parameter to the deployment spec
g

Graham Mattox

06/06/2022, 2:32 PM
what about the situation in which someone wants to override them at run time on the UI, or with a CLI command
k

Kevin Kho

06/06/2022, 2:37 PM
UI not supported yet. CLI there is
prefect deployment run
but it doesn’t take params just yet
g

Graham Mattox

06/06/2022, 2:39 PM
ah ok, is there a timeline for that stuff?
k

Kevin Kho

06/06/2022, 2:41 PM
The UI one is definitely needed to move off beta to general availability, and that is estimated for like 1-2 months. but no timeline for that specific ticket
g

Graham Mattox

06/06/2022, 2:44 PM
gotcha, thank you!!