nestjs-temporal-core
    Preparing search index...

    Type Alias WorkerCreateOptions

    WorkerCreateOptions: Omit<
        WorkerOptions,
        | "connection"
        | "taskQueue"
        | "activities"
        | "workflowsPath"
        | "workflowBundle"
        | "namespace",
    > & { enableOpenTelemetry?: boolean; enableSDKTracing?: boolean }

    Advanced configuration options for Temporal Worker creation. Controls worker behavior, concurrency, and performance settings.

    This is a direct subset of Temporal SDK's WorkerOptions from @temporalio/worker, omitting fields that are managed by the framework (connection, taskQueue, activities, workflowsPath, workflowBundle, namespace).

    For complete documentation of each option, see: https://typescript.temporal.io/api/interfaces/worker.WorkerOptions

    Type Declaration

    • OptionalenableOpenTelemetry?: boolean

      Not forwarded to Temporal SDK — there is no matching SDK option. Kept for backward compatibility; value is ignored at runtime.

    • OptionalenableSDKTracing?: boolean

      Not forwarded to Temporal SDK — there is no matching SDK option. Kept for backward compatibility; value is ignored at runtime.

    const workerOptions: WorkerCreateOptions = {
    maxConcurrentActivityTaskExecutions: 100,
    maxConcurrentWorkflowTaskExecutions: 50,
    maxActivitiesPerSecond: 200,
    shutdownGraceTime: '30s',
    shutdownForceTime: '60s',
    enableLoggingInReplay: false,
    identity: 'production-worker-1'
    };