mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
a468ed316d
* Added stop_event to util.Process util.Process will take care of receiving signals when the stop_event is accessed in the subclass. If it never is, SystemExit is raised instead. This has the effect of still behaving like multiprocessing.Process when stop_event is not accessed, while still allowing subclasses to not deal with the hassle of setting it up. * Give each util.Process their own logger This will help to reduce boilerplate in subclasses. * Give explicit types to util.Process.__init__ This gives better type hinting in the editor. * Use util.Process facilities in AudioProcessor Boilerplate begone! * Removed pointless check in util.Process The log_listener.queue should never be None, unless something has gone extremely wrong in the log setup code. If we're that far gone, crashing is better. * Make sure faulthandler is enabled in all processes This has no effect currently since we're using the fork start_method. However, when we inevidably switch to forkserver (either by choice, or by upgrading to python 3.14+) not having this makes for some really fun failure modes :D |
||
---|---|---|
.. | ||
api | ||
camera | ||
comms | ||
config | ||
detectors | ||
embeddings | ||
events | ||
genai | ||
images | ||
motion | ||
output | ||
ptz | ||
record | ||
review | ||
stats | ||
test | ||
track | ||
util | ||
__init__.py | ||
__main__.py | ||
app.py | ||
const.py | ||
ffmpeg_presets.py | ||
log.py | ||
models.py | ||
mypy.ini | ||
object_detection.py | ||
object_processing.py | ||
plus.py | ||
storage.py | ||
timeline.py | ||
types.py | ||
video.py | ||
watchdog.py |