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)
raiseStopIteration("Job did not finish correctly.")
self.unlock()
logger.info("Job '%s' finished execution with result %s"%(self._format_log(job_id,array_id),result))
logger.info("Job '%s' finished execution with result '%s'"%(self._format_log(job_id,array_id),result))
finished_tasks.add(job_id)
# in any case, remove the job from the list
delrunning_tasks[task_index]
...
...
@@ -254,7 +257,7 @@ class JobManagerLocal(JobManager):
time.sleep(sleep_time)
# This is the only way to stop: you have to interrupt the scheduler
exceptKeyboardInterrupt:
except (KeyboardInterrupt,StopIteration):
ifhasattr(self,'session'):
self.unlock()
logger.info("Stopping task scheduler due to user interrupt.")