Angular Modernizer
    Preparing search index...

    Interface ParallelAnalysisOptions

    Parallel analysis options

    interface ParallelAnalysisOptions {
        autoSelectMode?: boolean;
        batchSize?: number;
        enableMonitoring?: boolean;
        fallbackToWorkers?: boolean;
        maxWorkers?: number;
        minFilesForWorkers?: number;
        onProgress?: (progress: ProgressEvent) => void;
        pluginIds?: string[];
        plugins?: string[];
        rules?: string[];
        signal?: AbortSignal;
        thresholds?: ModeThresholds;
        timeout?: number;
        tsConfigPath?: string;
        useCache?: boolean;
        useWorkerThreads?: boolean;
        workerScriptPath?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    autoSelectMode?: boolean

    Enable automatic mode selection based on project complexity, default: true. When enabled, the executor analyzes project metrics (file count, LOC, memory pressure) and automatically chooses between Promise-based and worker thread parallelism.

    Set to false to disable auto-selection and use Promise-based mode by default. If useWorkerThreads is explicitly set (true or false), this option is ignored.

    batchSize?: number

    Maximum files per worker batch (default: 10)

    enableMonitoring?: boolean

    Enable real-time memory monitoring in Promise mode, default: true. Monitors heap usage and projects peak memory to abort if critical threshold exceeded.

    fallbackToWorkers?: boolean

    Allow automatic fallback to workers if Promise mode aborts, default: true. Only used when autoSelectMode is true and monitoring detects memory pressure.

    maxWorkers?: number

    Maximum concurrent workers (default: CPU cores - 1)

    minFilesForWorkers?: number

    Minimum number of files required to use worker threads (default: 200). Worker thread initialization has significant overhead (loading ts-morph project, plugins, etc.). For small file sets, Promise-based parallelism is faster. Set to 0 to always use workers when useWorkerThreads is true.

    onProgress?: (progress: ProgressEvent) => void

    Enable progress callbacks

    pluginIds?: string[]

    Plugin IDs to load in workers

    plugins?: string[]

    Plugin IDs to include (default: all)

    rules?: string[]

    Rule IDs to include (default: all)

    signal?: AbortSignal

    Enable cancellation

    thresholds?: ModeThresholds

    Custom thresholds for automatic mode selection. Only used when autoSelectMode is true.

    timeout?: number

    Task timeout in milliseconds (default: 30000)

    tsConfigPath?: string

    TypeScript config path (required for worker threads)

    useCache?: boolean

    Enable caching of analysis results (default: true)

    useWorkerThreads?: boolean

    Use worker threads for true parallelism

    workerScriptPath?: string

    Path to worker script (required for worker threads). Use getWorkerScriptPath() from @angular-modernizer/worker package.