mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-04 21:00:32 +03:00
Require setting process priority for FrigateProcess (#19207)
This commit is contained in:
committed by
Blake Blackshear
parent
d071325ca7
commit
20104761e8
@@ -4,6 +4,7 @@ import logging
|
||||
from multiprocessing.synchronize import Event as MpEvent
|
||||
|
||||
from frigate.config import FrigateConfig
|
||||
from frigate.const import PROCESS_PRIORITY_MED
|
||||
from frigate.review.maintainer import ReviewSegmentMaintainer
|
||||
from frigate.util.process import FrigateProcess
|
||||
|
||||
@@ -12,7 +13,12 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
class ReviewProcess(FrigateProcess):
|
||||
def __init__(self, config: FrigateConfig, stop_event: MpEvent) -> None:
|
||||
super().__init__(stop_event, name="frigate.review_segment_manager", daemon=True)
|
||||
super().__init__(
|
||||
stop_event,
|
||||
PROCESS_PRIORITY_MED,
|
||||
name="frigate.review_segment_manager",
|
||||
daemon=True,
|
||||
)
|
||||
self.config = config
|
||||
|
||||
def run(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user