<@ULVA73B9P> how do i set a custom name for a flow...
# ask-marvin
r
@Marvin how do i set a custom name for a flow run from a deployment?
m
To set a custom name for a flow run when using a deployment in Prefect, you typically need to configure the deployment settings. Unfortunately, the specific details on setting a custom flow run name directly from a deployment are not explicitly documented in the available resources. However, you can manage deployments and customize various parameters, which might include naming conventions, through the Prefect API and UI. Here's a general approach: 1. Create a Deployment: When you create a deployment, you define the flow and its metadata. This includes the deployment name, which is part of the unique identifier
{FLOW_NAME}/{DEPLOYMENT_NAME}
. 2. Use Prefect CLI or Python SDK: You can trigger a deployment run using the Prefect CLI or the Python SDK, which might allow you to specify additional parameters or configurations. For more information on creating and managing deployments, you can refer to the Prefect Documentation on Deployments. If you need to customize the flow run name programmatically, it might require additional configuration or feature support that isn't directly exposed in the current deployment schema. You might want to explore the Prefect community forums or GitHub issues for any updates or workarounds.