https://prefect.io logo
Title
i

iñigo

10/26/2022, 10:39 PM
Hello everyone, How could you pass different parameters in deployments through python? In my flow: @flow(name="Master of flows") def Master_flow( t: str='defecto' ): task_data(t) then in my deployment script: deployment = Deployment.build_from_flow( flow=Master_flow, name="docker_azure_flow", version=1, work_queue_name="default", parameters={'t':'parametro pasado'})
m

Matt Conger

10/26/2022, 11:13 PM
Hey @iñigo check out this thread I've attached, I think it may help with dynamic parameters for deployments: https://prefect-community.slack.com/archives/C03D12VV4NN/p1662578347414779 If you're looking for dynamic parameters for your flows as well, this blog post is amazing https://www.prefect.io/guide/blog/how-to-make-your-data-pipelines-more-dynamic-using-parameters-in-prefect/
i

iñigo

10/27/2022, 8:08 AM
thank you, The blog is interesting but it is in prefect v1. but they don't speak about deployments.
m

Matt Conger

10/27/2022, 3:35 PM
Did you get a chance to check through the older Slack thread that went through deployment dynamic parameters? Ill inlcude it again here https://prefect-community.slack.com/archives/C03D12VV4NN/p1662578347414779