# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User Nate Coraor <nate@bx.psu.edu> # Date 1287678598 14400 # Node ID 8cc9544dd81d6c53e7c79a24b5fb30f58854e45b # Parent 423e72ab19901de8dc8f5e4e2d2e7524921380bc Fix traceback encountered if you try to access the admin job management interface from a server with job running disabled. --- a/lib/galaxy/web/base/controller.py +++ b/lib/galaxy/web/base/controller.py @@ -1491,6 +1491,8 @@ class Admin( object ): deleted = [] msg = None status = None + if not trans.app.config.get_bool( "enable_job_running", True ): + return trans.show_error_message( 'This Galaxy instance is not configured to run jobs. If using multiple servers, please directly access the job running instance to manage jobs.' ) job_ids = util.listify( stop ) if job_ids and stop_msg in [ None, '' ]: msg = 'Please enter an error message to display to the user describing why the job was terminated'