mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
Don't cleanup integration tests twice.
This commit is contained in:
@@ -51,9 +51,11 @@ def app_factory(global_conf, load_app_kwds={}, **kwargs):
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
sys.exit(1)
|
||||
# Call app's shutdown method when the interpeter exits, this cleanly stops
|
||||
# the various Galaxy application daemon threads
|
||||
app.application_stack.register_postfork_function(atexit.register, app.shutdown)
|
||||
|
||||
if kwargs.get('register_shutdown_at_exit', True):
|
||||
# Call app's shutdown method when the interpeter exits, this cleanly stops
|
||||
# the various Galaxy application daemon threads
|
||||
app.application_stack.register_postfork_function(atexit.register, app.shutdown)
|
||||
# Create the universe WSGI application
|
||||
webapp = GalaxyWebApplication(app, session_cookie='galaxysession', name='galaxy')
|
||||
|
||||
|
||||
@@ -776,7 +776,8 @@ def launch_server(app, webapp_factory, kwargs, prefix=DEFAULT_CONFIG_PREFIX, con
|
||||
kwargs['global_conf'],
|
||||
app=app,
|
||||
use_translogger=False,
|
||||
static_enabled=True
|
||||
static_enabled=True,
|
||||
register_shutdown_at_exit=False
|
||||
)
|
||||
server, port = serve_webapp(
|
||||
webapp,
|
||||
|
||||
Reference in New Issue
Block a user