<@ULVA73B9P> is there a preferred naming conventio...
# ask-marvin
j
@Marvin is there a preferred naming convention for deployments vs flows?
m
To better assist you with naming conventions for deployments and flows in Prefect, I need to determine the version of Prefect you're using. If you could let me know which version you're interested in, I can search the relevant documentation for detailed information on this topic.
j
@Marvin 3.x
m
In Prefect 3.x, while there is no strict naming convention enforced for flows and deployments, there are some practices that you can consider to maintain clarity and consistency: 1. Flows: You can name flow runs dynamically using functions that return strings. For example, you might use a date or parameters from the flow to generate a meaningful name for each run. This approach allows you to identify the purpose or scope of a flow run at a glance. For instance, you can use a function to create names like
"{flow_name}-with-{name}-and-{limit}"
where
name
and
limit
are parameters of the flow. Learn more here. 2. Deployments: Each deployment has a unique name, and while the specific naming is up to you, it's useful to include descriptive elements that indicate the purpose or environment (e.g.,
my-flow/production
,
etl-pipeline-stage
). You can also deploy multiple deployments with names that match certain patterns, which aids in managing them collectively. Check the deployment documentation for more examples. These naming conventions assist in better identifying and managing various flows and deployments, helping as they scale and operate across different environments or use cases.