details: http://www.bx.psu.edu/hg/galaxy/rev/c141cb89aa45 changeset: 1637:c141cb89aa45 user: Nate Coraor <nate@bx.psu.edu> date: Thu Nov 20 16:15:39 2008 -0500 description: Fix job recovery 2 file(s) affected in this change: lib/galaxy/jobs/__init__.py universe_wsgi.ini.sample diffs (27 lines): diff -r 8412e0cbe7f0 -r c141cb89aa45 lib/galaxy/jobs/__init__.py --- a/lib/galaxy/jobs/__init__.py Tue Nov 18 16:04:41 2008 -0500 +++ b/lib/galaxy/jobs/__init__.py Thu Nov 20 16:15:39 2008 -0500 @@ -107,7 +107,7 @@ self.monitor_thread = threading.Thread( target=self.monitor ) self.monitor_thread.start() log.info( "job manager started" ) - if self.track_jobs_in_database: + if app.config.get_bool( 'enable_job_recovery', True ): self.check_jobs_at_startup() def check_jobs_at_startup( self ): diff -r 8412e0cbe7f0 -r c141cb89aa45 universe_wsgi.ini.sample --- a/universe_wsgi.ini.sample Tue Nov 18 16:04:41 2008 -0500 +++ b/universe_wsgi.ini.sample Thu Nov 20 16:15:39 2008 -0500 @@ -24,6 +24,11 @@ # Should jobs be tracked through the database, rather than in memory ## track_jobs_in_database = true + +# Enable job recovery (if Galaxy is restarted while cluster jobs are running, +# it can "recover" them when it starts). This is not safe to use if you are +# running more than one Galaxy server using the same database. +#enable_job_recovery = True # Number of concurrent jobs to run (local runner) local_job_queue_workers = 5