Hi All, I wanted to know if we could change the f...
# ask-community
r
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
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
Thanks for the response @Nate
Small correction - We would like to know if we could change the deployment parameters, such as image name/tag dynamically.
n
sorry, do you mean
job_variables
? like
image
from your work pool ? https://docs.prefect.io/latest/guides/deployment/overriding-job-variables/