fix(vidgod_index): sqlite busy timeout for concurrent jobs

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
John King 2026-08-26 10:29:59 +10:00
parent 8965d2240b
commit b7458ec2b0

View File

@ -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