Updated dictionary

This commit is contained in:
George Tsiamasiotis 2024-09-28 08:47:25 +03:00
parent c4c0474727
commit e1796e1edf
2 changed files with 6 additions and 5 deletions

View File

@ -59,6 +59,7 @@ dsize
dtype dtype
ECONNRESET ECONNRESET
edgetpu edgetpu
fastapi
faststart faststart
fflags fflags
ffprobe ffprobe
@ -270,6 +271,7 @@ unraid
unreviewed unreviewed
userdata userdata
usermod usermod
uvicorn
vaapi vaapi
vainfo vainfo
variations variations

View File

@ -4,7 +4,6 @@ import multiprocessing as mp
import os import os
import secrets import secrets
import shutil import shutil
from multiprocessing import Queue
from multiprocessing.synchronize import Event as MpEvent from multiprocessing.synchronize import Event as MpEvent
from typing import Any, Optional from typing import Any, Optional
@ -80,10 +79,10 @@ class FrigateApp:
# TODO: Fix FrigateConfig usage, so we can properly annotate it here without mypy erroring out. # TODO: Fix FrigateConfig usage, so we can properly annotate it here without mypy erroring out.
def __init__(self, config: Any) -> None: def __init__(self, config: Any) -> None:
self.stop_event: MpEvent = mp.Event() self.stop_event: MpEvent = mp.Event()
self.detection_queue: Queue = mp.Queue() self.detection_queue: mp.Queue = mp.Queue()
self.detectors: dict[str, ObjectDetectProcess] = {} self.detectors: dict[str, ObjectDetectProcess] = {}
self.detection_shms: list[mp.shared_memory.SharedMemory] = [] self.detection_shms: list[mp.shared_memory.SharedMemory] = []
self.log_queue: Queue = mp.Queue() self.log_queue: mp.Queue = mp.Queue()
self.cameras: dict[str, Camera] = {} self.cameras: dict[str, Camera] = {}
self.processes: dict[str, int] = {} self.processes: dict[str, int] = {}
self.config = config self.config = config
@ -105,12 +104,12 @@ class FrigateApp:
def init_queues(self) -> None: def init_queues(self) -> None:
# Queue for cameras to push tracked objects to # Queue for cameras to push tracked objects to
self.detected_frames_queue: Queue = mp.Queue( self.detected_frames_queue: mp.Queue = mp.Queue(
maxsize=sum(camera.enabled for camera in self.config.cameras.values()) * 2 maxsize=sum(camera.enabled for camera in self.config.cameras.values()) * 2
) )
# Queue for timeline events # Queue for timeline events
self.timeline_queue: Queue = mp.Queue() self.timeline_queue: mp.Queue = mp.Queue()
def init_database(self) -> None: def init_database(self) -> None:
def vacuum_db(db: SqliteExtDatabase) -> None: def vacuum_db(db: SqliteExtDatabase) -> None: