<@ULVA73B9P> What's the best way to run a deployme...
# marvin-in-the-wild
j
@Marvin What's the best way to run a deployment (with Work Pools) but with varying parameters?
m
To run a deployment with varying parameters, you can create an ad-hoc flow run with different parameter values by going to the details page for a deployment, selecting Run, then select Custom. You will be able to provide custom values for any editable deployment fields. Under Parameters, select Custom and provide the values you need for that particular execution. These custom values will be used only for that specific flow run. For more detailed information, you can refer to the Block-based Deployments documentation. As for Work Pools, they serve as a bridge between the Prefect orchestration environment and your execution environment. When a deployment creates a flow run, it is submitted to a specific work pool for scheduling. Depending on your configuration, a worker can poll its respective work pool for new runs, or the work pool can submit flow runs to serverless infrastructure directly. For more information about Work Pools, check the Work Pools documentation.
j
Hi Jo. If you want to run deployments from Python code you can run them with
run_deployment
and pass different values to the
parameters
parameter.
1