Skip to main content

CREATE WORKER

Creates a worker.

note

This command requires cloud control to be enabled.

Syntax

CREATE WORKER [ IF NOT EXISTS ] <worker_name>
[ WITH <option_name> = '<option_value>' [ , <option_name> = '<option_value>' , ... ] ]

Parameters

ParameterDescription
IF NOT EXISTSOptional. Succeeds without changes if the worker already exists.
<worker_name>The worker name.
WITH ...Optional comma-separated key-value options. Option names are normalized to lowercase.

Examples

Create a worker without options:

CREATE WORKER ingest_worker;

Create a worker with custom options:

CREATE WORKER IF NOT EXISTS ingest_worker
WITH region = 'us-east-1', pool = 'etl';
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today