Add recurring handling of user, resource and vgrid map refresh to janitor#357
Add recurring handling of user, resource and vgrid map refresh to janitor#357jonasbardino wants to merge 2 commits intonextfrom
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.
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.