mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-12 17:52:48 +03:00
Require setting process priority for FrigateProcess (#19207)
This commit is contained in:
committed by
Blake Blackshear
parent
d071325ca7
commit
20104761e8
@@ -22,7 +22,7 @@ from frigate.config.camera.updater import (
|
||||
CameraConfigUpdateEnum,
|
||||
CameraConfigUpdateSubscriber,
|
||||
)
|
||||
from frigate.const import CACHE_DIR, CLIPS_DIR
|
||||
from frigate.const import CACHE_DIR, CLIPS_DIR, PROCESS_PRIORITY_MED
|
||||
from frigate.output.birdseye import Birdseye
|
||||
from frigate.output.camera import JsmpegCamera
|
||||
from frigate.output.preview import PreviewRecorder
|
||||
@@ -74,7 +74,9 @@ def check_disabled_camera_update(
|
||||
|
||||
class OutputProcess(FrigateProcess):
|
||||
def __init__(self, config: FrigateConfig, stop_event: MpEvent) -> None:
|
||||
super().__init__(stop_event, name="frigate.output", daemon=True)
|
||||
super().__init__(
|
||||
stop_event, PROCESS_PRIORITY_MED, name="frigate.output", daemon=True
|
||||
)
|
||||
self.config = config
|
||||
|
||||
def run(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user