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

Worker healthcheck server (Python SDK)

These variables enable a local HTTP server that exposes /health and /metrics for a running worker.

VariableDescriptionDefault Value
HATCHET_CLIENT_WORKER_HEALTHCHECK_ENABLEDEnable the local worker healthcheck serverfalse
HATCHET_CLIENT_WORKER_HEALTHCHECK_PORTPort for the local worker healthcheck server8001
HATCHET_CLIENT_WORKER_HEALTHCHECK_EVENT_LOOP_BLOCK_THRESHOLD_SECONDSIf the worker listener process event loop is blocked longer than this threshold, /health returns 5035.0

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
HATCHET_CLIENT_TLS_MIN_VERSIONMinimum TLS version (1.2, 1.3)1.3

Logging Configuration

VariableDescriptionDefault Value
HATCHET_CLIENT_LOG_LEVELLog level for the worker clientWARN
HATCHET_CLIENT_LOG_FORMATLog format for the worker clientconsole
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

Last updated on August 26, 2026

On this page