Nikolay Tsvetanov
09/25/2024, 2:03 PMbuild_from_flow
to deploy a flow by passing entrypoint
and `path`:
build_deployment = await Deployment.build_from_flow(
flow=hello_world_flow,
name=name,
...
entrypoint=entrypoint,
path=path)
Im starting now on 3.0 but now build_from_flow is missing:
prefect.exceptions.PrefectImportError: `prefect.deployments:Deployment` has been removed. Use `flow.serve()`, `flow.deploy()`, or `prefect deploy` instead.
Docs mention this args but it is unclear with no examples.
Does someone know how to pass entrypoint & path when creating deployment from a flow?Jeff Hale
09/25/2024, 2:23 PM.deploy
to create a deployment with an entrypoint.
See more discussion about flow code storage here.Nate
09/25/2024, 4:33 PMbuild_from_flow
to .deploy
https://docs.prefect.io/3.0/resources/upgrade-agents-to-workers#use-flow-deployNikolay Tsvetanov
09/25/2024, 6:53 PMFrancesco Bartoli
10/09/2024, 8:46 AMS3Bucket
from prefect-aws
extension this is a demo which is working for me. It’s still latest v2
but I’m quite sure that would be the way v3
deployments workNikolay Tsvetanov
10/09/2024, 8:50 AM