mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Allow command-line paste serve var 'heartbeat_log' to override heartbeat log filename, done like this so we can use a single config file for multiple instances but prevent them from clobbering file names.
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ class UniverseApplication( object ):
|
||||
if self.config.use_heartbeat:
|
||||
from galaxy.util import heartbeat
|
||||
if heartbeat.Heartbeat:
|
||||
self.heartbeat = heartbeat.Heartbeat()
|
||||
self.heartbeat = heartbeat.Heartbeat( fname=self.config.heartbeat_log )
|
||||
self.heartbeat.start()
|
||||
# Enable the memdump signal catcher if configured and available
|
||||
if self.config.use_memdump:
|
||||
|
||||
@@ -114,6 +114,8 @@ class Configuration( object ):
|
||||
self.global_conf_parser = global_conf_parser
|
||||
if global_conf and "__file__" in global_conf:
|
||||
global_conf_parser.read(global_conf['__file__'])
|
||||
# Heartbeat log file name override
|
||||
self.heartbeat_log = global_conf.get( 'heartbeat_log', 'heartbeat.log' )
|
||||
#Store per-tool runner config
|
||||
try:
|
||||
self.tool_runners = global_conf_parser.items("galaxy:tool_runners")
|
||||
|
||||
Reference in New Issue
Block a user