mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-04 04:32:01 +00:00
Improved the pauses between indexing steps and between files of the Batch Processing Assistant (#1240)
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user