blakeblackshear.frigate/frigate/api
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
..
__init__.py Update flask and restructure into api folder with apis put into separate folders (#10193) 2024-03-02 22:10:37 +00:00
app.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
auth.py strip whitespaces when loading secrets (#12393) 2024-07-12 07:36:15 -06:00
event.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
export.py Work through most of the cspell warnings in python (#13794) 2024-09-17 10:41:46 -05:00
media.py Move more things out of FrigateApp (#13897) 2024-09-24 07:07:47 -05:00
notification.py Implement support for notifications (#12523) 2024-08-29 20:19:50 -06:00
preview.py Add types to date preview & vod api (#13636) 2024-09-09 11:03:53 -05:00
review.py Explore view fixes (#13726) 2024-09-13 14:44:31 -06:00