call reap on start up and fix under reaping bug

This commit is contained in:
Neil Johnson 2018-08-16 22:55:32 +01:00
parent 372bf073c1
commit bcfeb44afe
4 changed files with 19 additions and 2 deletions

View file

@ -525,6 +525,7 @@ def run(hs):
clock.looping_call(
hs.get_datastore().reap_monthly_active_users, 1000 * 60 * 60
)
yield hs.get_datastore().reap_monthly_active_users()
@defer.inlineCallbacks
def generate_monthly_active_users():