mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:06:05 -04:00
Allow background tasks to be run on a separate worker. (#8369)
This commit is contained in:
parent
462e681c79
commit
62894673e6
19 changed files with 537 additions and 449 deletions
|
@ -288,8 +288,6 @@ class UIAuthWorkerStore(SQLBaseStore):
|
|||
)
|
||||
return [(row["user_agent"], row["ip"]) for row in rows]
|
||||
|
||||
|
||||
class UIAuthStore(UIAuthWorkerStore):
|
||||
async def delete_old_ui_auth_sessions(self, expiration_time: int) -> None:
|
||||
"""
|
||||
Remove sessions which were last used earlier than the expiration time.
|
||||
|
@ -339,3 +337,7 @@ class UIAuthStore(UIAuthWorkerStore):
|
|||
iterable=session_ids,
|
||||
keyvalues={},
|
||||
)
|
||||
|
||||
|
||||
class UIAuthStore(UIAuthWorkerStore):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue