prefect.cli
work_pool
Work pool command — native cyclopts implementation. Manage work pools.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
prefect.cli.work_poolcreate create(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool.')])
# 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()
$ prefect work-pool ls
inspect inspect(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to inspect.')])
$ prefect work-pool inspect "my-pool"
$ prefect work-pool inspect "my-pool" --output json
slots slots(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool.')])
pause pause(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to pause.')])
$ prefect work-pool pause "my-pool"
resume resume(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to resume.')])
$ prefect work-pool resume "my-pool"
update update(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to update.')])
$ prefect work-pool update "my-pool"
provision_infrastructure_cmd provision_infrastructure_cmd(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to provision infrastructure for.')])
$ prefect work-pool provision-infrastructure "my-pool"
$ prefect work-pool provision-infra "my-pool"
delete delete(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to delete.')])
$ 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.')])
$ prefect work-pool set-concurrency-limit "my-pool" 10
clear_concurrency_limit clear_concurrency_limit(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to update.')])
$ prefect work-pool clear-concurrency-limit "my-pool"
get_default_base_job_template get_default_base_job_template()
$ prefect work-pool get-default-base-job-template --type kubernetes
preview preview(name: Annotated[Optional[str], cyclopts.Parameter(help='The name or ID of the work pool to preview')] = None)
$ prefect work-pool preview "my-pool" --hours 24
storage_inspect storage_inspect(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to display storage configuration for.')])
$ prefect work-pool storage inspect "my-pool"
$ prefect work-pool storage inspect "my-pool" --output json
storage_configure_s3 storage_configure_s3(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to configure storage for.')])
$ prefect work-pool storage configure s3 "my-pool" --bucket my-bucket --aws-credentials-block-name my-credentials
storage_configure_gcs storage_configure_gcs(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to configure storage for.')])
$ prefect work-pool storage configure gcs "my-pool" --bucket my-bucket --gcp-credentials-block-name my-credentials
storage_configure_azure_blob_storage storage_configure_azure_blob_storage(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to configure storage for.')])
$ prefect work-pool storage configure azure-blob-storage "my-pool" --container my-container --azure-blob-storage-credentials-block-name my-credentials
Was this page helpful?