From b155b128a0e1e207275f64fa9dca84aace74a488 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 19 Jul 2023 14:05:14 -0600 Subject: [PATCH] Ensure db timeout is at least 60 --- frigate/record/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/record/record.py b/frigate/record/record.py index 6e40ac01c..0c76f33cb 100644 --- a/frigate/record/record.py +++ b/frigate/record/record.py @@ -45,7 +45,7 @@ def manage_recordings( "cache_size": -512 * 1000, # 512MB of cache "synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous }, - timeout=10 * len([c for c in config.cameras.values() if c.enabled]), + timeout=max(60, 10 * len([c for c in config.cameras.values() if c.enabled])), ) models = [Event, Recordings, Timeline, RecordingsToDelete] db.bind(models)