Skip to content
Snippets Groups Projects
Unverified Commit 289ce3b8 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Fix harmless exception in port DB script (#15814)

The port DB script would try and run database background tasks, which
could fail if the data they acted on was in the process of being ported.
These exceptions were non fatal.

Fixes #15789
parent 6c749c51
No related branches found
No related tags found
No related merge requests found
Fix harmless exceptions being printed when running the port DB script.
...@@ -1369,6 +1369,9 @@ def main() -> None: ...@@ -1369,6 +1369,9 @@ def main() -> None:
sys.stderr.write("Database must use the 'psycopg2' connector.\n") sys.stderr.write("Database must use the 'psycopg2' connector.\n")
sys.exit(3) sys.exit(3)
# Don't run the background tasks that get started by the data stores.
hs_config["run_background_tasks_on"] = "some_other_process"
config = HomeServerConfig() config = HomeServerConfig()
config.parse_config_dict(hs_config, "", "") config.parse_config_dict(hs_config, "", "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment