From b7458ec2b0ec21711708f0381aaafbe42d7eb4b5 Mon Sep 17 00:00:00 2001 From: John King Date: Wed, 26 Aug 2026 10:29:59 +1000 Subject: [PATCH] fix(vidgod_index): sqlite busy timeout for concurrent jobs Co-Authored-By: Claude Fable 5 --- server/operators/vidgod_index/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/operators/vidgod_index/run.py b/server/operators/vidgod_index/run.py index 2e1daeb..d81dee1 100644 --- a/server/operators/vidgod_index/run.py +++ b/server/operators/vidgod_index/run.py @@ -41,7 +41,7 @@ if p.get("no_whisper", False): print("+", " ".join(cmd), flush=True) subprocess.run(cmd, check=True, stderr=sys.stdout) -db = sqlite3.connect(vg / "library/clips.sqlite") +db = sqlite3.connect(vg / "library/clips.sqlite", timeout=30) row = db.execute( """SELECT v.id, v.duration, COUNT(DISTINCT s.id), COUNT(DISTINCT g.id) FROM videos v LEFT JOIN shots s ON s.video_id=v.id