Skip to content

Commit a50e6af

Browse files
committed
Fix deployment function; add work pool name to deployment creation and improve output messages
1 parent 36c50af commit a50e6af

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
@@ -23,13 +23,15 @@ def deploy_move_desk_flow(deployment_name: str = "move-desk"):
2323

2424
# Create deployment using the correct API
2525
deployment = move_to_height.to_deployment(
26-
name=deployment_name
26+
name=deployment_name,
27+
work_pool_name="desk-lifter-pool"
2728
)
2829

2930
# Deploy it
3031
deployment_id = deployment.apply()
3132

3233
print(f"✅ Deployment '{deployment_name}' created with ID: {deployment_id}")
34+
print(f"Work pool: desk-lifter-pool")
3335
print(f"To run: prefect deployment run 'move-to-height/{deployment_name}' --param target_height=30")
3436
print(f"Parameter: target_height (float, in inches)")
3537

0 commit comments

Comments
 (0)