From c97e6a3a677bcf5d0140631e61e9ee1019f33d09 Mon Sep 17 00:00:00 2001 From: Firmlyzhu Date: Fri, 12 Apr 2019 16:15:06 +0800 Subject: [PATCH] fix a bug that failed reason has not been cleared after fininshing the task --- src/master/jobmgr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/master/jobmgr.py b/src/master/jobmgr.py index 1b454a2..fc02ec5 100644 --- a/src/master/jobmgr.py +++ b/src/master/jobmgr.py @@ -171,6 +171,7 @@ class BatchJob(object): self.tasks[task_idx]['db'].running_time = running_time self.tasks[task_idx]['db'].end_time = datetime.now() self.tasks[task_idx]['db'].billing = billing + self.tasks[task_idx]['db'].failed_reason = "" self.job_db = Batchjob.query.get(self.job_id) self.job_db.billing += billing self.tasks_cnt['finished'] += 1