Fix a bug of task completed

This commit is contained in:
zhuyj17 2019-04-06 11:37:50 +08:00
parent 10e000df8b
commit a5257eb025
1 changed files with 1 additions and 0 deletions

View File

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