Add a "Max parallel executions" setting to the General settings tab so the queue can run more than one task concurrently. QueueService now tracks multiple active slots and reads the limit from app settings each cycle, so changes take effect without restarting the worker. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
24 lines
822 B
C#
24 lines
822 B
C#
namespace ClaudeDo.Data.Models;
|
|
|
|
public sealed class AppSettingsEntity
|
|
{
|
|
public const int SingletonId = 1;
|
|
|
|
public int Id { get; set; } = SingletonId;
|
|
|
|
public string DefaultClaudeInstructions { get; set; } = string.Empty;
|
|
public string DefaultModel { get; set; } = "sonnet";
|
|
public int DefaultMaxTurns { get; set; } = 100;
|
|
public string DefaultPermissionMode { get; set; } = "auto";
|
|
|
|
public int MaxParallelExecutions { get; set; } = 1;
|
|
|
|
public string WorktreeStrategy { get; set; } = "sibling";
|
|
public string? CentralWorktreeRoot { get; set; }
|
|
public bool WorktreeAutoCleanupEnabled { get; set; }
|
|
public int WorktreeAutoCleanupDays { get; set; } = 7;
|
|
|
|
// JSON array of parent folders remembered by the repo-import modal.
|
|
public string? RepoImportFolders { get; set; }
|
|
}
|