<@ULVA73B9P> How do deployment versions work?
# marvin-in-the-wild
j
@Marvin How do deployment versions work?
m
Here is a summary of how deployment versions work in Prefect: 1. Version Composition: Versions are typically composed of three parts: MAJOR.MINOR.PATCH (e.g., 2.5.0). 2. Suffixes: Occasionally, suffixes like "rc", "a", or "b" are added to indicate pre-release versions. 3. Increment Rules: - Major Version: Increased when significant and widespread changes occur. - Minor Version: Increased when new concepts are introduced or existing ones are fundamentally altered. - Patch Version: Increased for minor changes and bug fixes. Read more about Prefect's versioning here. Deployment involves running
prefect deploy
in a directory with a
prefect.yaml
file, which triggers a series of actions to register the deployment with the Prefect API. Full details can be found here. For an example of a Prefect flow, you can refer to this code example. If you have any specific questions about deployment versions in Prefect, feel free to ask!
j
@Marvin I'm specifically wondering about the
version
that you specify in the deployment declaration reference. Does that version control any logic? Or is it simply for the developer to use?
m
The
version
specified in the deployment declaration primarily functions as a metadata reference for developers. It is a way to tag and track different iterations or configurations of a deployment. Key Points: - The
version
value itself does not control any logic within Prefect. - It is meant for developers to organize, identify, and manage different deployments. - Prefect can use these version tags for better tracking and reporting but does not alter deployment behavior based on them. For a detailed explanation, you can consult the Prefect documentation here. If you need more specific details or examples, do let me know!