-
Notifications
You must be signed in to change notification settings - Fork 28
Fix garbage collection #1480
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
Fix garbage collection #1480
Conversation
- if the webserver crashed before registering the ondisconnect event from the websocket, the server will now properly cleanup - added a client side "keep alive" - this feature is till a work in prgoress
Codecov Report
@@ Coverage Diff @@
## master #1480 +/- ##
==========================================
+ Coverage 71.47% 76.83% +5.36%
==========================================
Files 244 155 -89
Lines 9707 6632 -3075
Branches 1060 752 -308
==========================================
- Hits 6938 5096 -1842
+ Misses 2464 1301 -1163
+ Partials 305 235 -70
Continue to review full report at Codecov.
|
- removed when webserver crashes - removed when closing the browser window or tab
services/web/server/src/simcore_service_webserver/resource_manager/garbage_collector.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/resource_manager/garbage_collector.py
Outdated
Show resolved
Hide resolved
- decaoupled service and moved calls to user_api - added warnings in case a user cannot be removed - added warnings in case a project cannot be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes. I also miss a test. Can you add a variation of existing tests on garbage-collection? ONly if you think it's worth
services/web/server/src/simcore_service_webserver/resource_manager/garbage_collector.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/resource_manager/garbage_collector.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WatchDog looking good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go for it!
What do these changes do?
The following fixes aim to improve garbage collection in general inside the system.
Related issue number
closes #1307
closes #1415
How to test
Checklist
make openapi-specs
,git commit ...
and thenmake version-*
)