nestjs-temporal-core
    Preparing search index...

    Interface WorkerDefinition

    Configuration for a single worker instance. Allows defining multiple workers with different task queues.

    const workerDef: WorkerDefinition = {
    taskQueue: 'payments-queue',
    workflowsPath: './dist/workflows/payments',
    activityClasses: [PaymentActivity],
    autoStart: true,
    autoRestart: true,
    maxRestarts: 5,
    workerOptions: {
    maxConcurrentActivityTaskExecutions: 100
    }
    };
    interface WorkerDefinition {
        activityClasses?: Type<object>[];
        autoRestart?: boolean;
        autoStart?: boolean;
        maxRestarts?: number;
        taskQueue: string;
        workerOptions?: WorkerCreateOptions;
        workflowBundle?: Record<string, unknown>;
        workflowsPath?: string;
    }
    Index

    Properties

    activityClasses?: Type<object>[]
    autoRestart?: boolean

    Enable auto-restart on worker failure (default: inherits from global autoRestart)

    autoStart?: boolean
    maxRestarts?: number

    Maximum restart attempts before giving up (default: 3)

    taskQueue: string
    workerOptions?: WorkerCreateOptions
    workflowBundle?: Record<string, unknown>
    workflowsPath?: string