@plust/datasleuth - v0.2.0
    Preparing search index...

    Interface ParallelOptions

    Options for parallel execution

    interface ParallelOptions {
        tracks: ResearchStep[];
        continueOnError?: boolean;
        timeout?: number;
        mergeFunction?: (
            tracks: Record<
                string,
                {
                    name: string;
                    results: any[];
                    data: Record<string, any>;
                    metadata?: Record<string, any>;
                    errors: { message: string; step?: string; code?: string }[];
                    completed: boolean;
                },
            >,
            state: ResearchState,
        ) => any;
        includeInResults?: boolean;
        retry?: { maxRetries?: number; baseDelay?: number };
    }
    Index

    Properties

    tracks: ResearchStep[]

    An array of steps to execute in parallel

    continueOnError?: boolean

    Whether to continue execution if one track fails

    timeout?: number

    Maximum time in ms to wait for all tracks to complete

    mergeFunction?: (
        tracks: Record<
            string,
            {
                name: string;
                results: any[];
                data: Record<string, any>;
                metadata?: Record<string, any>;
                errors: { message: string; step?: string; code?: string }[];
                completed: boolean;
            },
        >,
        state: ResearchState,
    ) => any

    Function to merge results from all tracks

    includeInResults?: boolean

    Whether to include the merged result in the results array

    retry?: { maxRetries?: number; baseDelay?: number }

    Retry configuration for the parallel step

    Type declaration

    • OptionalmaxRetries?: number

      Maximum number of retries

    • OptionalbaseDelay?: number

      Base delay between retries in ms