[migration] don't send notification for repeating child tasks
This commit is contained in:
parent
5af5b2142e
commit
68b054783b
|
@ -412,6 +412,11 @@ func (p *processor) saveTaskAndWriteLog(taskItem *task.Task, taskResult *task.Ta
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *processor) sendMajorTaskNotification(taskItem *task.Task) {
|
func (p *processor) sendMajorTaskNotification(taskItem *task.Task) {
|
||||||
|
// don't send notification for repeating child tasks
|
||||||
|
if len(taskItem.ParentId) > 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
config := migration_model.ClusterComparisonTaskConfig{}
|
config := migration_model.ClusterComparisonTaskConfig{}
|
||||||
err := migration_util.GetTaskConfig(taskItem, &config)
|
err := migration_util.GetTaskConfig(taskItem, &config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -439,6 +439,11 @@ func (p *processor) saveTaskAndWriteLog(taskItem *task.Task, taskResult *task.Ta
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *processor) sendMajorTaskNotification(taskItem *task.Task) {
|
func (p *processor) sendMajorTaskNotification(taskItem *task.Task) {
|
||||||
|
// don't send notification for repeating child tasks
|
||||||
|
if len(taskItem.ParentId) > 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
config := migration_model.ClusterMigrationTaskConfig{}
|
config := migration_model.ClusterMigrationTaskConfig{}
|
||||||
err := migration_util.GetTaskConfig(taskItem, &config)
|
err := migration_util.GetTaskConfig(taskItem, &config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue