deepsparse
deepsparse copied to clipboard
Adding file monitoring hooks
Note: Not integrated into server yet.
Main hook is start_file_watcher for server to call into to kick off a watcher process. Everything else is just helpers for that.
The file watcher at a high level does the following:
- Check every X seconds if the file has been modified
- If so, check if any endpoints were added/removed/modified
- If endpoints have changed, send requests to server to update it live
- Save the old config as
<path>.v<version>
test plan: unit tests