-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve caching. #431
base: feature/config-nested
Are you sure you want to change the base?
Improve caching. #431
Conversation
Very cool improvement. When I cancel the make run app with ctrl+c, I get following error on save (during runtime I used the /pvforecast endpoint with PVForecastAkkudoktor once):
Subsequent attempted starts fail with:
|
022824c
to
39d5ed8
Compare
Added some error logging. Maybe it becomes clearer where the error sits. Conclusion: system testing has to be improved. |
39d5ed8
to
3909e3d
Compare
Thank you! The app starts and closes now again successfully (and the cachefilestore.json tracks the cache files). It doesn't seem to load the data from cache yet however (/v1/prediction/list is empty) |
0def910
to
fb58ec8
Compare
fb58ec8
to
24e1bf6
Compare
Should now load cached data. Please test. |
8acdf95
to
88e0197
Compare
* Move the caching module to core. Add an in memory cache that for caching function and method results during an energy management run (optimization run). Two decorators are provided for methods and functions. * Improve the file cache store by load and save functions. Make EOS load the cache file store on startup and save it on shutdown. Add a cyclic task that cleans the cache file store from outdated cache files. * Improve startup of EOSdash by EOS Make EOS starting EOSdash adhere to path configuration given in EOS. The whole environment from EOS is now passed to EOSdash. Should also prevent test errors due to unwanted/ wrong config file creation. * Allow to check server process startup by health status Both servers now provide a health endpoint that can be used to detect whether the server is running. This is also used for testing now. * Add administration endpoints to control caching from REST API. * Improve test support (to be able to test caching) - Add system test option to pytest for running tests with "real" resources - Add new test fixture to start server for test class Signed-off-by: Bobby Noelte <[email protected]>
88e0197
to
d20dc86
Compare
Add an in memory cache that for caching function and method results
during an energy management run (optimization run). Two decorators
are provided for methods and functions.
Make EOS load the cache file store on startup and save it on shutdown.
Add a cyclic task that cleans the cache file store from outdated cache files.
Make EOS starting EOSdash adhere to path configuration given in EOS.
The whole environment from EOS is now passed to EOSdash.
Should also prevent test errors due to unwanted/ wrong config file creation.
Both servers now provide a health endpoint that can be used to detect whether
the server is running. This is also used for testing now.
Add administration endpoints to control caching from REST API.
Improve test support (to be able to test caching)