logger.error("Job '%s' finished with status '%s' instead of 'success' or 'failure'. Usually this means an internal error. Check your wrapper_script parameter!",self._format_log(job_id,array_id),job.status)
logger.error("Job '%s'(%s) finished with status '%s' instead of 'success' or 'failure'. Usually this means an internal error. Check your wrapper_script parameter!",job.name,self._format_log(job_id,array_id),job.status)
raiseStopIteration("Job did not finish correctly.")
logger.info("Job '%s' (%s) finished execution with result '%s'",job.name,self._format_log(job_id,array_id),result)
self.unlock()
logger.info("Job '%s' finished execution with result '%s'"%(self._format_log(job_id,array_id),result))