Added a pause between indexing steps for shared embedding servers (#1114)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-27 08:05:52 +01:00
1 parent cbc4ce5413
commit dcba62b45c
21 files changed
+627 -9

No files matched your search

@@ -0,0 +1,14 @@
namespace AIStudio.Tools.Services.Indexing;
/// <summary>
/// How long the indexing step which is about to start waits, cf. PauseBetweenSteps.GetPauseBeforeNextStep.
/// </summary>
/// <param name="Pause">The pause drawn for the gap since the last step.</param>
/// <param name="Remaining">What is left of the pause now. More than zero, unless this is NONE.</param>
internal sealed record PauseBeforeStep(TimeSpan Pause, TimeSpan Remaining)
{
/// <summary>
/// The step starts right away.
/// </summary>
public static readonly PauseBeforeStep NONE = new(TimeSpan.Zero, TimeSpan.Zero);
}