Spaces:
Running
Running
Commit ·
fc5a6ca
1
Parent(s): f00923d
fix: forcefully disable automatic migrations and clear SQLite lock files to bypass server hang
Browse files148 unmodified lines149150151152153152153154155156157158159160161162163164165166148 unmodified lines }
// Run Migrations with a reasonable timeout db.Database.SetCommandTimeout(120); // 2 minutes db.Database.Migrate(); // db.Database.SetCommandTimeout(120); // 2 minutes // db.Database.Migrate();
// Manual lock clearing try { string dbPath = "/app/taskflow.db"; if (File.Exists(dbPath)) { foreach (var s in new[] { "-wal", "-shm", "-journal" }) { if (File.Exists(dbPath + s)) File.Delete(dbPath + s); } } } catch {}
// Auto-seed achievements var achievementService = scope.ServiceProvider.GetRequiredService<IAchievementService>();FlowAPI/Program.cs+12-2