Merge pull request #381 from FirmlyReality/batch

Fix a bug of task completed
This commit is contained in:
Yujian Zhu 2019-04-06 11:38:49 +08:00 committed by GitHub
commit 729f1cec2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -515,6 +515,7 @@ class TaskMgr(threading.Thread):
task.status = FAILED task.status = FAILED
task.failed_reason = report.errmsg task.failed_reason = report.errmsg
elif report.subTaskStatus == COMPLETED: elif report.subTaskStatus == COMPLETED:
sub_task.status = report.subTaskStatus
self.clear_sub_task(sub_task) self.clear_sub_task(sub_task)
# return task, workers # return task, workers