Skip to content

Commit

Permalink
Makes agents work pool aware (#8222)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris White <chris@prefect.io>
  • Loading branch information
2 people authored and zanieb committed Feb 6, 2023
1 parent 770a110 commit 7dab7e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/prefect/cli/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,15 @@ async def apply(
app.console.print(
f"$ prefect agent start -q {deployment.work_queue_name!r}", style="blue"
)
elif deployment.work_pool_name is not None:
app.console.print(
"\nTo execute flow runs from this deployment, start an agent "
f"that pulls work from the {deployment.work_pool_name!r} work pool:"
)
app.console.print(
f"$ prefect agent start --pool {deployment.work_pool_name!r}",
style="blue",
)
else:
app.console.print(
"\nThis deployment does not specify a work queue name, which means agents "
Expand Down

0 comments on commit 7dab7e6

Please sign in to comment.