Do not report retrying when task has been failed
This commit is contained in:
parent
876fb83326
commit
84f4c18e2d
|
@ -417,6 +417,7 @@ class TaskMgr(threading.Thread):
|
|||
[success, msg] = self.start_vnode(sub_task)
|
||||
if not success:
|
||||
sub_task.waiting_for_retry("Fail to start vnode.")
|
||||
if sub_task.status == WAITING:
|
||||
self.jobmgr.report(task.username, task.id, 'retrying', "Fail to start vnode.")
|
||||
sub_task.worker = None
|
||||
start_all_vnode_success = False
|
||||
|
@ -436,7 +437,8 @@ class TaskMgr(threading.Thread):
|
|||
if success:
|
||||
sub_task.status = RUNNING
|
||||
else:
|
||||
sub_task.waiting_for_retry("Failt to start task.")
|
||||
sub_task.waiting_for_retry("Fail to start task.")
|
||||
if sub_task.status == WAITING:
|
||||
self.jobmgr.report(task.username, task.id, 'retrying', "Fail to start task.")
|
||||
|
||||
def clear_sub_tasks(self, sub_task_list):
|
||||
|
|
Loading…
Reference in New Issue