fix(data): give both processes a SQLite busy timeout
This commit is contained in:
@@ -57,8 +57,9 @@ builder.Host.UseSerilog((ctx, lc) => lc
|
||||
.WriteTo.Sink(broadcastSink));
|
||||
builder.Services.AddSingleton(logBuffer);
|
||||
|
||||
// See ClaudeDo.App/Program.cs — Default Timeout maps to SQLite's busy handler.
|
||||
builder.Services.AddDbContextFactory<ClaudeDoDbContext>(opt =>
|
||||
opt.UseSqlite($"Data Source={cfg.DbPath}"));
|
||||
opt.UseSqlite($"Data Source={cfg.DbPath};Default Timeout=30"));
|
||||
|
||||
builder.Services.AddSingleton(cfg);
|
||||
builder.Services.AddSingleton<AttachmentStore>();
|
||||
|
||||
Reference in New Issue
Block a user