blakeblackshear.frigate/frigate
gtsiam dc54981784
Move more things out of FrigateApp (#13897)
* Moved FrigateApp.init_config() into FrigateConfig.load()

* Move frigate config loading into main

* Store PlusApi in FrigateConfig

* Register SIGTERM handler in main

* Ensure logging is setup during config parsing

* Removed pointless try

* Moved config initialization out of FrigateApp

* Made FrigateApp.shm_frame_count into a function

* Removed log calls from signal handlers

python's logging calls are not re-entrant, which caused at least one of
these to deadlock randomly.

* Reopen stdout/err on process fork

This helps avoid deadlocks (https://github.com/python/cpython/issues/91776).

* Make mypy happy

* Whoops. I might have forgotten to save.

Truly an amateur mistake.

* Always call FrigateApp.stop()
2024-09-24 07:07:47 -05:00
..
api Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
comms Work through most of the cspell warnings in python (#13794) 2024-09-17 10:41:46 -05:00
detectors Remove context file (#13885) 2024-09-22 08:38:23 -06:00
embeddings Chroma fixes (#13902) 2024-09-23 06:53:19 -06:00
events Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
genai write prompts for genai at the camera level (#13767) 2024-09-16 08:46:11 -06:00
images
motion Work through most of the cspell warnings in python (#13794) 2024-09-17 10:41:46 -05:00
output Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
ptz try deleting zoom spaces if disabled (#13915) 2024-09-23 15:34:08 -05:00
record Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
review Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
stats Work through most of the cspell warnings in python (#13794) 2024-09-17 10:41:46 -05:00
test Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
track Adjust stationary reqs depending on state (#11226) 2024-05-03 17:28:06 -05:00
util Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
__init__.py
__main__.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
app.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
config.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
const.py Removed usage of PyYAML for config parsing. (#13883) 2024-09-22 10:56:57 -05:00
ffmpeg_presets.py Update ffmpeg to 7 and update intel hwaccel docs (#13834) 2024-09-19 13:29:58 -06:00
log.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
models.py Implement support for notifications (#12523) 2024-08-29 20:19:50 -06:00
mypy.ini
object_detection.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
object_processing.py Fix detections logic (#13781) 2024-09-16 18:23:10 -05:00
plus.py strip whitespaces when loading secrets (#12393) 2024-07-12 07:36:15 -06:00
storage.py
timeline.py Do not handle object if data is None (#13830) 2024-09-19 07:51:07 -06:00
types.py Convert config updating and video/audio queues to use zmq (#9893) 2024-02-19 07:26:59 -06:00
video.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
watchdog.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00