Hi All,
I wanted to know if we could change the flow parameters dynamically at run time. For example, I would want to run a flow(that remains the same), on different images for different use-cases, without having the need to create deployments per use-case.
n
Nate
08/05/2024, 3:50 PM
hi @Ram Prasad N - yes, you can always pass a JSON of
parameters
when creating flow runs, whether you're creating them from the SDK, CLI, UI or API directly
for example
Copy code
from prefect.deployments import run_deployment
run_deployment("my-flow/my-deployment", parameters=dict(some_param=42))
r
Ram Prasad N
08/06/2024, 11:02 AM
Thanks for the response @Nate
Ram Prasad N
08/06/2024, 11:04 AM
Small correction - We would like to know if we could change the deployment parameters, such as image name/tag dynamically.
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.