[migration] fix wrong pending_stop notification
This commit is contained in:
parent
c691bbc607
commit
e27a51f884
|
@ -458,8 +458,7 @@ func (p *DispatcherProcessor) handlePendingStopSubTask(taskItem *task2.Task) err
|
||||||
// all subtask stopped or error or complete
|
// all subtask stopped or error or complete
|
||||||
if len(tasks) == 0 {
|
if len(tasks) == 0 {
|
||||||
taskItem.Status = task2.StatusStopped
|
taskItem.Status = task2.StatusStopped
|
||||||
p.sendMajorTaskNotification(taskItem)
|
p.saveTaskAndWriteLog(taskItem, "", nil, fmt.Sprintf("index migration task [%s] stopped", taskItem.ID))
|
||||||
p.saveTaskAndWriteLog(taskItem, "", nil, fmt.Sprintf("task [%s] stopped", taskItem.ID))
|
|
||||||
// clean disk queue if manually stopped
|
// clean disk queue if manually stopped
|
||||||
p.cleanGatewayQueue(taskItem)
|
p.cleanGatewayQueue(taskItem)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue