mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 19:44:14 -04:00
Check database in has_completed_background_updates
so that the right thing happens on workers.
This commit is contained in:
parent
7098b65cb8
commit
2908f955d1
3 changed files with 33 additions and 12 deletions
|
@ -354,7 +354,7 @@ class PreviewUrlResource(Resource):
|
|||
|
||||
logger.info("Running url preview cache expiry")
|
||||
|
||||
if not self.store.has_completed_background_updates():
|
||||
if not (yield self.store.has_completed_background_updates()):
|
||||
logger.info("Still running DB updates; skipping expiry")
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue