From 9096ee05333b1fc18f199b48d405b574e1691e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 17 Mar 2022 15:38:14 +0100 Subject: [PATCH] Manager: disable periodic VACUUM --- cmd/flamenco-manager/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/flamenco-manager/main.go b/cmd/flamenco-manager/main.go index 723eee48..c89157b6 100644 --- a/cmd/flamenco-manager/main.go +++ b/cmd/flamenco-manager/main.go @@ -85,7 +85,12 @@ func main() { // Construct the services. persist := openDB(*configService) - go persist.PeriodicMaintenanceLoop(mainCtx) + + // Disabled for now. `VACUUM` locks the database, which means that other + // queries can fail with a "database is locked (5) (SQLITE_BUSY)" error. This + // situation should be handled gracefully before reinstating the vacuum loop. + // + // go persist.PeriodicMaintenanceLoop(mainCtx) flamenco := buildFlamencoAPI(configService, persist) e := buildWebService(flamenco, persist, ssdp)