<@ULVA73B9P> I have one Flow script, where via dep...
# ask-marvin
e
@Marvin I have one Flow script, where via deployment parameters, each deployment passes in different customer names to run tasks for that customer. Is there a way to dynamically use those parameters to set a flow_name? I can set a flow_run_name by pulling via
deployment.parameters.get()
but I can't seem to set Flow names that way
m
Based on the search results, it appears that dynamically setting the
flow_name
within the script itself using deployment parameters is not a documented feature of Prefect. Each deployment is associated with a single flow and typically the association between a deployment and a flow is defined by the
flow_name/deployment_name
combination. You can set default parameter values in the
deployment.yaml
, and while you can pull deployment parameters to set
flow_run_name
dynamically at runtime, there is no direct way to update the
flow_name
post-deployment. For more in-depth details or any recent changes, you might want to check the Prefect documents or ask the Prefect community: - Prefect Docs: Deployments and Flows - Prefect Docs: Parameters in Deployments Setting different
flow_run_name
based on deployment parameters is often sufficient for distinguishing different runs for various customers. If having different
flow_name
values is critical to your use case, consider generating separate flows for each customer during deployment time or consult with Prefect support for more advanced customization options if available.
e
Got it - that matches my understanding as well. Thanks for confirming sir