preload modules

This commit is contained in:
Josh Hawkins 2025-06-24 12:28:40 -05:00
parent 81ca054012
commit 1cedf79556

View File

@ -118,5 +118,19 @@ def main() -> None:
if __name__ == "__main__":
mp.set_forkserver_preload(
[
# Standard library and core dependencies
"sqlite3",
# Third-party libraries commonly used in Frigate
"numpy",
"cv2",
"peewee",
"zmq",
"ruamel.yaml",
# Frigate core modules
"frigate.camera.maintainer",
]
)
mp.set_start_method("forkserver", force=True)
main()