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)
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),jj.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)