mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Set timeout based on number of cameras (#7219)
This commit is contained in:
parent
91aadb6044
commit
f2ff55dba2
@ -313,7 +313,7 @@ class FrigateApp:
|
||||
"cache_size": -512 * 1000, # 512MB of cache,
|
||||
"synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous
|
||||
},
|
||||
timeout=60,
|
||||
timeout=10 * len([c for c in self.config.cameras.values() if c.enabled]),
|
||||
)
|
||||
models = [Event, Recordings, Timeline]
|
||||
self.db.bind(models)
|
||||
|
@ -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=60,
|
||||
timeout=10 * len([c for c in config.cameras.values() if c.enabled]),
|
||||
)
|
||||
models = [Event, Recordings, Timeline, RecordingsToDelete]
|
||||
db.bind(models)
|
||||
|
Loading…
Reference in New Issue
Block a user