Created
October 31, 2012 16:57
-
-
Save jmchilton/3988285 to your computer and use it in GitHub Desktop.
Handler refactoring1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r b2975e2fa684 lib/galaxy/jobs/handler.py | |
--- a/lib/galaxy/jobs/handler.py Fri Oct 26 12:56:23 2012 -0400 | |
+++ b/lib/galaxy/jobs/handler.py Wed Oct 31 12:00:10 2012 -0500 | |
@@ -397,6 +397,11 @@ | |
def put( self, job_wrapper ): | |
try: | |
runner_name = self.__get_runner_name( job_wrapper ) | |
+ except Exception: | |
+ log.exception( 'Failed to generate job runner name' ) | |
+ job_wrapper.fail( 'Unable to run job due to a misconfiguration of the Galaxy job running system. Please contact a site administrator.' ) | |
+ return | |
+ try: | |
if self.app.config.use_tasked_jobs and job_wrapper.tool.parallelism is not None and isinstance(job_wrapper, TaskWrapper): | |
#DBTODO Refactor | |
log.debug( "dispatching task %s, of job %d, to %s runner" %( job_wrapper.task_id, job_wrapper.job_id, runner_name ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment