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)
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.
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?: WorkflowBundleOption | Record<string, unknown>Workflow bundle. Prefer Temporal SDK's WorkflowBundleOption
({ code } or { codePath }). Loose shape accepted for backward
compatibility.
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