From 3e6090c7e4f4cc7e12b0f78fed0fbe84a500c72b Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 26 Feb 2015 12:47:50 -0500 Subject: [PATCH] Move server_starttime to base universe application so shared templates between galaxy/shed/etc don't break. --- lib/galaxy/app.py | 2 ++ lib/galaxy/webapps/galaxy/buildapp.py | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/app.py b/lib/galaxy/app.py index 5f95d2cde44..cc1f122e2e3 100644 --- a/lib/galaxy/app.py +++ b/lib/galaxy/app.py @@ -2,6 +2,7 @@ from __future__ import absolute_import import sys import os +import time from galaxy import config, jobs import galaxy.model import galaxy.security @@ -147,6 +148,7 @@ class UniverseApplication( object, config.ConfiguresGalaxyMixin ): self.workflow_scheduling_manager = scheduling_manager.WorkflowSchedulingManager( self ) self.model.engine.dispose() + self.server_starttime = int(time.time()) # used for cachebusting def setup_control_queue(self): self.control_worker = GalaxyQueueWorker(self, galaxy.queues.control_queue_from_config(self.config), diff --git a/lib/galaxy/webapps/galaxy/buildapp.py b/lib/galaxy/webapps/galaxy/buildapp.py index 8a4baa1af69..d7492408b52 100644 --- a/lib/galaxy/webapps/galaxy/buildapp.py +++ b/lib/galaxy/webapps/galaxy/buildapp.py @@ -3,7 +3,6 @@ Provides factory methods to assemble the Galaxy web application """ import atexit -import time import os import os.path import sys @@ -115,8 +114,6 @@ def app_factory( global_conf, **kwargs ): except: pass - app.server_starttime = int(time.time()) # used for cachebusting - if not app.config.is_uwsgi: postfork_setup()