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
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
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
__main__.py
app.py Fix logging (#14122) 2024-10-03 06:33:53 -06:00
const.py
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
mypy.ini
object_detection.py
object_processing.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
plus.py
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
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