Skip to main content

astro deployment worker-queue create

Create a [worker queue](/astro/configure-deployment-resources#worker-queues on) for a Deployment on Astro. This command is functionally identical to creating a worker queue in the Cloud UI.

Usage

astro deployment worker-queue create

Options

OptionDescriptionPossible Values
--concurrencyThe maximum number of tasks that each worker can runAny integer from 1 to 64
-d,--deployment-idThe ID of the Deployment where you want to create the worker queueAny valid Deployment ID
--deployment-nameThe name of the Deployment where you want to create the worker queue. Use as an alternative to <deployment-id>Any valid Deployment name
--max-countThe maximum worker count of the worker queueAny integer from 0 to 30
--min-countThe minimum worker count of the worker queueAny integer from 0 to 30
-n,--nameThe name of the worker queueAny string
-t,--worker-typeThe worker type of the worker queueAny worker type enabled on the cluster in which the Deployment exists

Examples

astro deployment worker-queue create --deployment-id cl03oiq7d80402nwn7fsl3dmv
# Creates a new worker queue for a Deployment with ID `cl03oiq7d80402nwn7fsl3dmv`. The Astro CLI prompts you for configuration information.

astro deployment worker-queue create --concurrency 20 --max-count 10 --min-count 2 --name "My worker queue" --worker-type "m5d.8xlarge"
# Creates a new worker queue with specified configurations. The Astro CLI prompts you for Deployment information.