Eric Albanese
04/03/2024, 6:01 PMdeployment.parameters.get()
but I can't seem to set Flow names that wayMarvin
04/03/2024, 6:01 PMflow_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.Eric Albanese
04/03/2024, 6:04 PM