Commit 5cc46eb1 authored by Manuel Günther's avatar Manuel Günther

Fixed crash tha could happen due to parallel access.

parent 425950c5
...@@ -179,7 +179,7 @@ class JobManagerLocal(JobManager): ...@@ -179,7 +179,7 @@ class JobManagerLocal(JobManager):
self.lock() self.lock()
job, array_job = self._job_and_array(job_id, array_id) job, array_job = self._job_and_array(job_id, array_id)
if array_job: job = array_job if array_job: job = array_job
result = "%s (%d)" % (job.status, job.result) result = "%s (%d)" % (job.status, job.result) if job.result is not None else "%s (?)" % job.status
self.unlock() 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))
# in any case, remove the job from the list # in any case, remove the job from the list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment