OptionalallowOptionalautoEnable auto-restart on worker failure for all workers (default: true)
OptionalconnectionConnection config — see ClientConnectionOptions.
OptionalenableOptionalenableEnable NestJS shutdown hooks to properly handle SIGTERM/SIGINT signals. When enabled, the module will register shutdown hooks to ensure graceful worker termination.
OptionalisOptionallogOptionalmaxMaximum restart attempts before giving up for all workers (default: 3)
OptionalmuteWhen true, suppresses error-level log output and prevents service methods from throwing on operational failures (they return structured error results instead).
OptionalshutdownMaximum time in milliseconds to wait for graceful worker shutdown. After this timeout, the shutdown process will complete anyway to prevent hanging.
OptionaltaskOptionalworkerSingle-worker config. Equivalent to Omit<WorkerDefinition, 'taskQueue'>.
Optionalworkers
Main configuration options for Temporal module initialization. Supports both client-only and worker configurations. Now supports multiple workers via the
workersarray property.Example: Basic Setup with Single Worker (Legacy)
Example: Multiple Workers Setup
Example: Client-only Setup