Skip to content

Commit 5fc1165

Browse files
committed
Refactor deployment function; switch to using Deployment.build_from_flow for move desk flow
1 parent cbff9f8 commit 5fc1165

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/progressive_automations_python/prefect_flows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from progressive_automations_python.desk_controller import move_to_height
8+
from prefect.deployments import Deployment
89
from prefect.runner.storage import GitRepository
910

1011

@@ -23,7 +24,8 @@ def deploy_move_desk_flow(deployment_name: str = "move-desk"):
2324
"""
2425

2526
# Create deployment with Git source
26-
deployment = move_to_height.to_deployment(
27+
deployment = Deployment.build_from_flow(
28+
flow=move_to_height,
2729
name=deployment_name,
2830
work_pool_name="desk-lifter-pool",
2931
storage=GitRepository(

0 commit comments

Comments
 (0)