• Stops the background skip metrics collection service

    Terminates the scheduled background aggregation process and cleans up resources. This function should be called when the application is shutting down or when aggregation needs to be temporarily suspended.

    Returns void

    // Stop collection during application shutdown
    stopSkipMetricsCollection();
    export function stopSkipMetricsCollection() {
    if (aggregationInterval) {
    clearInterval(aggregationInterval);
    aggregationInterval = null;
    }

    isCollecting = false;
    saveLog("Stopped skip metrics collection service", "INFO");
    }