mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Similar fix as the previous -- Galaxy wasn't disposing of pooled connections prior to returning webapp and (potential) forking.
This commit is contained in:
@@ -106,13 +106,13 @@ def app_factory( global_conf, **kwargs ):
|
||||
pack_scripts()
|
||||
# Close any pooled database connections before forking
|
||||
try:
|
||||
galaxy.model.mapping.metadata.engine.connection_provider._pool.dispose()
|
||||
galaxy.model.mapping.metadata.bind.dispose()
|
||||
except:
|
||||
pass
|
||||
log.exception("Unable to dispose of pooled galaxy model database connections.")
|
||||
try:
|
||||
galaxy.model.tool_shed_install.mapping.metadata.engine.connection_provider._pool.dispose()
|
||||
galaxy.model.tool_shed_install.mapping.metadata.bind.dispose()
|
||||
except:
|
||||
pass
|
||||
log.exception("Unable to dispose of pooled toolshed install model database connections.")
|
||||
|
||||
if not app.config.is_uwsgi:
|
||||
postfork_setup()
|
||||
|
||||
Reference in New Issue
Block a user