OptionalenableOpenTelemetry?: booleanOptionalenableSDKTracing?: booleanconst workerOptions: WorkerCreateOptions = {
maxConcurrentActivityTaskExecutions: 100,
maxConcurrentWorkflowTaskExecutions: 50,
maxActivitiesPerSecond: 200,
shutdownGraceTime: '30s',
shutdownForceTime: '60s',
enableLoggingInReplay: false,
identity: 'production-worker-1'
};
Advanced configuration options for Temporal Worker creation. Controls worker behavior, concurrency, and performance settings.
This is a direct subset of Temporal SDK's
WorkerOptionsfrom@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