-
- Downloads
Refresh remote profiles that have been marked as stale, in order to fill the...
Refresh remote profiles that have been marked as stale, in order to fill the user directory. [rei:userdirpriv] (#14756) * Scaffolding for background process to refresh profiles * Add scaffolding for background process to refresh profiles for a given server * Implement the code to select servers to refresh from * Ensure we don't build up multiple looping calls * Make `get_profile` able to respect backoffs * Add logic for refreshing users * When backing off, schedule a refresh when the backoff is over * Wake up the background processes when we receive an interesting state event * Add tests * Newsfile Signed-off-by:Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Add comment about 1<<62 --------- Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
Showing
- changelog.d/14756.bugfix 1 addition, 0 deletionschangelog.d/14756.bugfix
- synapse/handlers/profile.py 2 additions, 2 deletionssynapse/handlers/profile.py
- synapse/handlers/user_directory.py 242 additions, 0 deletionssynapse/handlers/user_directory.py
- synapse/storage/databases/main/user_directory.py 74 additions, 0 deletionssynapse/storage/databases/main/user_directory.py
- tests/handlers/test_user_directory.py 185 additions, 2 deletionstests/handlers/test_user_directory.py
Loading
Please register or sign in to comment