blakeblackshear.frigate/frigate/events
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
..
__init__.py Ability to manually create events through the API (#3184) 2023-05-19 05:16:11 -05:00
audio.py Added stop_event to util.Process (#14142) 2024-10-03 11:03:43 -06:00
cleanup.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
external.py Cleanup after recordings refactor (#13518) 2024-09-03 08:49:50 -06:00
maintainer.py Properly call super() in subclasses (#14124) 2024-10-02 19:35:46 -06:00
types.py Add ability to configure genai to use snapshot instead of thumbnails (#14077) 2024-09-30 15:54:53 -06:00