We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking "Accept", you agree to our use of cookies.
Learn more.

Self HostingWorker Configuration Options

Worker Configuration Options

The Hatchet worker can be configured via environment variables and programmatic options. This document contains a list of all available options.

Basic Configuration

VariableDescriptionDefault Value
HATCHET_CLIENT_TOKENAuthentication token for the worker
HATCHET_CLIENT_HOST_PORTGRPC server host and port* Inherited from token
HATCHET_CLIENT_API_URL (TypeScript SDK)API server host and port* Inherited from token
HATCHET_CLIENT_SERVER_URL (Go SDK)API server host and port* Inherited from token
HATCHET_CLIENT_NAMESPACENamespace prefix for the worker* Inherited from token

Worker Runtime Configuration

VariableDescriptionDefault Value
nameFriendly name of the worker
slotsMaximum number of concurrent runs100
durable_slotsMaximum number of concurrent durable tasks1000

TLS Configuration

VariableDescriptionDefault Value
HATCHET_CLIENT_TLS_STRATEGYTLS strategy (tls, mtls, none)tls
HATCHET_CLIENT_TLS_CERT_FILEPath to TLS certificate file
HATCHET_CLIENT_TLS_KEY_FILEPath to TLS key file
HATCHET_CLIENT_TLS_ROOT_CA_FILEPath to TLS root CA file
HATCHET_CLIENT_TLS_SERVER_NAMETLS server name

Logging Configuration

VariableDescriptionDefault Value
HATCHET_CLIENT_LOG_LEVELLog level for the workerINFO
HATCHET_CLIENT_GRPC_MAX_RECV_MESSAGE_LENGTHMaximum gRPC message receive size (Python SDK only)4MB
HATCHET_CLIENT_GRPC_MAX_SEND_MESSAGE_LENGTHMaximum gRPC message send size (Python SDK only)4MB