Hi, Has anyone run into issues with deployment nam...
# ask-community
m
Hi, Has anyone run into issues with deployment names or any known limitations in Prefect v3.4 (self-hosted)? I’m trying to deploy my flow:
Copy code
flow.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:
n
thanks! we'll take a look
🙏 1
if you have a chance, please feel free to test out by installing this branch
m
@Nate thanks for the update: In order to test it, • I cloned the repo • Switched to the branch
fix-deployment-name-truncation-from-storage
• Ran
uv sync
to install reqs • Ran
uv run prefect dev build-u
to build UI • Ran my makefile:
Copy code
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? Thanks
n
the bug/fix is purely related to the client side SDK, not the UI or the server. i would be surprised if
.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
Copy code
uv run --with git+<https://github.com/PrefectHQ/prefect/pull/19179/head> your_script_with_deploy.py
m
Hi @Nate, the new version
3.4.24
has been released, and the issue is fixed. So we are set here. Thanks a lot and have a nice day.