Mehrdad
10/14/2025, 7:54 PMflow.from_source(
source=source_code_storage,
entrypoint=pricing_subflow_entrypoint
).deploy(
name=f'pricing-subflow-v2.0.1',
version=version,
work_pool_name=work_pool_name,
tags=["pricing-core"],
image=DockerImage(name=image, platform="linux/amd64"),
push=False,
build=False,
job_variables=job_variables
)
But the deployment name ends up being only "pricing-subflow-v2", and the rest of the name (.0.1) gets ignored.
This is the result of deployment:Nate
10/14/2025, 8:00 PMNate
10/14/2025, 8:19 PMNate
10/14/2025, 8:20 PMMehrdad
10/15/2025, 1:02 PMfix-deployment-name-truncation-from-storage
• Ran uv sync to install reqs
• Ran uv run prefect dev build-u to build UI
• Ran my makefile:
server:
docker rm --force postgresql
docker run -itd -e POSTGRES_USER=prefect -e POSTGRES_PASSWORD=prefect -p 5433:5432 -v /usr/postgres/data_v3_new:/var/lib/postgresql/data --name postgresql postgres:16.4
- prefect profile use local
prefect config set PREFECT_API_DATABASE_CONNECTION_URL="<postgresql+asyncpg://prefect:prefect@localhost:5433/prefect>"
prefect config set PREFECT_API_URL=<http://127.0.0.1:4200/api>
prefect server start
Now, I can see the version in the UI is 3.4.24.dev3+9.geaab49f0d1 . I tried to deploy the same flow with the same condition as before, but the name is still truncated. Any suggestions? ThanksNate
10/16/2025, 4:15 PM.deploy is still truncating the version on that branch, as we have test coverage for this exact case. perhaps you could double check you're using the right version
since you're using uv, all you should have to do is
uv run --with git+<https://github.com/PrefectHQ/prefect/pull/19179/head> your_script_with_deploy.pyMehrdad
10/17/2025, 9:06 AM3.4.24 has been released, and the issue is fixed. So we are set here. Thanks a lot and have a nice day.