blakeblackshear.frigate/frigate
gtsiam a468ed316d
Added stop_event to util.Process (#14142)
* 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
2024-10-03 11:03:43 -06:00
..
api Fix mjpeg api (#14138) 2024-10-03 07:33:06 -06:00
camera Custom classes for Process and Metrics (#13950) 2024-09-27 07:53:23 -05:00
comms Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
config Fix logging (#14122) 2024-10-03 06:33:53 -06:00
detectors Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
embeddings UI tweaks (#14088) 2024-10-01 07:01:45 -06:00
events Added stop_event to util.Process (#14142) 2024-10-03 11:03:43 -06:00
genai Add Azure OpenAI as genai provider (#14102) 2024-10-01 13:57:40 -06:00
images
motion Work through most of the cspell warnings in python (#13794) 2024-09-17 10:41:46 -05:00
output Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
ptz Fix autotracking absolute zoom interpolation logic (#14139) 2024-10-03 08:40:27 -05:00
record Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
review Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
stats Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
test Refactor attribute saving (#14090) 2024-10-01 07:31:03 -06:00
track Refactor attribute saving (#14090) 2024-10-01 07:31:03 -06:00
util Added stop_event to util.Process (#14142) 2024-10-03 11:03:43 -06:00
__init__.py app container and config schema 2021-01-26 21:40:33 -06:00
__main__.py Split config.py into multiple files (#14038) 2024-09-28 14:21:42 -05:00
app.py Fix logging (#14122) 2024-10-03 06:33:53 -06:00
const.py Dynamic attributes config (#14035) 2024-09-28 07:49:04 -06:00
ffmpeg_presets.py Bug fixes (#14092) 2024-10-01 07:54:27 -06:00
log.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
models.py Implement support for notifications (#12523) 2024-08-29 20:19:50 -06:00
mypy.ini update deps (#6093) 2023-04-15 14:17:59 -05:00
object_detection.py Improve rocm handling of different models (#14072) 2024-09-30 16:40:46 -05:00
object_processing.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
plus.py strip whitespaces when loading secrets (#12393) 2024-07-12 07:36:15 -06:00
storage.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
timeline.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
types.py Custom classes for Process and Metrics (#13950) 2024-09-27 07:53:23 -05:00
video.py Fix shared memory frames being stuck when a camera capture crashed (#14140) 2024-10-03 09:31:07 -06:00
watchdog.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00