Skip to content

Commit 02aa7ad

Browse files
authored
Fix delete_old_otks job on worker deployments (#17960)
In a worker-mode deployment, the `E2eKeysHandler` is not necessarily loaded, which means the handler for the `delete_old_otks` task will not be registered. Make sure we load the handler. Introduced in #17934
1 parent 0202e5f commit 02aa7ad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.d/17960.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug introduced in Synapse v1.120rc1 which would cause the newly-introduced `delete_old_otks` job to fail in worker-mode deployments.

synapse/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ class HomeServer(metaclass=abc.ABCMeta):
254254
"auth",
255255
"deactivate_account",
256256
"delayed_events",
257+
"e2e_keys", # for the `delete_old_otks` scheduled-task handler
257258
"message",
258259
"pagination",
259260
"profile",

0 commit comments

Comments
 (0)