public static async waitForIngestionToComplete()

in packages/quick_start/src/Utils.ts [290:306]


    public static async waitForIngestionToComplete(waitForIngestSeconds: number) {
        Console.log(
            `Sleeping ${waitForIngestSeconds} seconds for queued ingestion to complete. Note: This may take longer depending on the file size and ingestion 
            batching policy.`,
        );
        Console.log();
        Console.log();

        for (let i = 0; i <= waitForIngestSeconds; i++) {
            const dots = ".".repeat(i);
            const left = waitForIngestSeconds - i;
            const empty = " ".repeat(left);

            process.stdout.write(`\r[${dots}${empty}] ${i * 5}%`);
            await new Promise((res) => setTimeout(res, 500));
        }
    }