mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
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
This commit is contained in:
parent
6c749c5124
commit
289ce3b8d9
2 changed files with 4 additions and 0 deletions
1
changelog.d/15814.misc
Normal file
1
changelog.d/15814.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Fix harmless exceptions being printed when running the port DB script.
|
|
@ -1369,6 +1369,9 @@ def main() -> None:
|
|||
sys.stderr.write("Database must use the 'psycopg2' connector.\n")
|
||||
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.parse_config_dict(hs_config, "", "")
|
||||
|
||||
|
|
Loading…
Reference in a new issue