OptionalallowOptionalautoEnable auto-restart on worker failure for all workers (default: true)
OptionalconnectionOptionalenableOptionalenableEnable 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)
OptionalshutdownMaximum time in milliseconds to wait for graceful worker shutdown. After this timeout, the shutdown process will complete anyway to prevent hanging.
OptionaltaskOptionalworkerOptionalactivityClasses?: Type<object>[]OptionalautoRestart?: booleanEnable auto-restart on worker failure (default: inherits from global autoRestart)
OptionalautoStart?: booleanOptionalmaxRestarts?: numberMaximum restart attempts before giving up (default: 3)
OptionalworkerOptions?: WorkerCreateOptionsOptionalworkflowBundle?: Record<string, unknown>OptionalworkflowsPath?: stringOptionalworkers
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