Improved the pauses between indexing steps and between files of the Batch Processing Assistant (#1240)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-27 14:39:17 +01:00
1 parent a117074972
commit 899139c88b
32 files changed
+787 -425

No files matched your search

@@ -0,0 +1,18 @@
namespace AIStudio.Settings.DataModel;
public static class DataBatchProcessingExtensions
{
/// <param name="settings">The settings of the Batch Processing Assistant.</param>
extension(DataBatchProcessing settings)
{
/// <summary>
/// Whether a configuration plugin locks the lower bound of the pause between two files.
/// </summary>
public static bool IsMinimumPauseLocked => ManagedConfiguration.TryGet(x => x.BatchProcessing, x => x.MinimumDelaySeconds, out var meta) && meta.IsLocked;
/// <summary>
/// Whether a configuration plugin locks the upper bound of the pause between two files.
/// </summary>
public static bool IsMaximumPauseLocked => ManagedConfiguration.TryGet(x => x.BatchProcessing, x => x.MaximumDelaySeconds, out var meta) && meta.IsLocked;
}
}