From 3ac516291cc8bd9604d8a1053c3bd6bec3968229 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 8 Apr 2015 13:46:55 -0400 Subject: [PATCH] Another pool disposal fix, for reports. --- lib/galaxy/webapps/reports/buildapp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/webapps/reports/buildapp.py b/lib/galaxy/webapps/reports/buildapp.py index b5fc37284b8..1b1965706c6 100644 --- a/lib/galaxy/webapps/reports/buildapp.py +++ b/lib/galaxy/webapps/reports/buildapp.py @@ -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