-
Notifications
You must be signed in to change notification settings - Fork 4
Add recurring handling of user, resource and vgrid map refresh to janitor #357
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
base: next
Are you sure you want to change the base?
Add recurring handling of user, resource and vgrid map refresh to janitor #357
Conversation
|
Currently fails CI due to the unrelated #353. |
|
Fundamentally verified in practice on a test site instance, but could use some more testing. |
Martin-Rehr
left a comment
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.
I would prefer to let the get_X functions from 'mig.shared.vgridaccess' handle if the janitor service is enabled.
Thanks for reviewing. If you mean keep |
b4c782a to
c892ed1
Compare
…itor. Still pending removal of client initiated refresh triggers in vgridman backend.
…nd resman backends if janitor is enabled since it takes care of all refresh handling.
c892ed1 to
c97df2b
Compare
I ment changing the |
Considering the number of other places the Meanwhile I added PRs #371 and #372 to introduce fundamental unit tests for the |
Add recurring handling of user, resource and vgrid map refresh to janitor service. Effectively centralizes the updates in a single long-running process rather than the fragile concurrent client-initiated refreshes, since they tend to result in clients hammering the site during refresh and may leave cache inconsistent if client hits HTTP time-out in the middle of a refresh (#121).
Runs in the main thread so far, but we may need to consider a background thread/process for the refresh if it turns out to delay other janitor tasks too much.
Removes client-initiated refresh triggers in
vgridmanandresmanbackends if janitor is enabled.Could perhaps use improved user-facing information e.g. about when the current (cached) view was generated on
vgridmanandresmanpages to help clarify when any recent changes are not yet fully processed and showing.