Work pool command — native cyclopts implementation.Manage work pools.
Functions
create
create(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool.')])
Create a new work pool or update an existing one.Examples:
# Create a Kubernetes work pool in a paused state$ prefect work-pool create "my-pool" --type kubernetes --paused# Create a Docker work pool with a custom base job template$ prefect work-pool create "my-pool" --type docker --base-job-template ./base-job-template.json# Update an existing work pool$ prefect work-pool create "existing-pool" --base-job-template ./base-job-template.json --overwrite
ls
ls()
List work pools.Examples:
$ prefect work-pool ls
inspect
inspect(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to inspect.')])
delete(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to delete.')])
Delete a work pool.Examples:
$ prefect work-pool delete "my-pool"
set_concurrency_limit
set_concurrency_limit(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to update.')], concurrency_limit: Annotated[int, cyclopts.Parameter(help='The new concurrency limit for the work pool.')])
Set the concurrency limit for a work pool.Examples: