mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Another pool disposal fix, for reports.
This commit is contained in:
@@ -70,12 +70,13 @@ def app_factory( global_conf, **kwargs ):
|
||||
webapp = wrap_in_static( webapp, global_conf, **kwargs )
|
||||
# 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.")
|
||||
# Return
|
||||
return webapp
|
||||
|
||||
|
||||
def wrap_in_middleware( app, global_conf, **local_conf ):
|
||||
"""Based on the configuration wrap `app` in a set of common and useful middleware."""
|
||||
# Merge the global and local configurations
|
||||
|
||||
Reference in New Issue
Block a user