Skip to content

Commit

Permalink
Fix delete_old_otks job on worker deployments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
richvdh committed Nov 25, 2024
1 parent 0202e5f commit 76f326b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/17960.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +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.
1 change: 1 addition & 0 deletions synapse/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ class HomeServer(metaclass=abc.ABCMeta):
"auth",
"deactivate_account",
"delayed_events",
"e2e_keys", # for the `delete_old_otks` scheduled-task handler
"message",
"pagination",
"profile",
Expand Down

0 comments on commit 76f326b

Please sign in to comment.