Merge pull request #3021 from Mjoycarry/feature/notify_grpc

Feature: Notify
This commit is contained in:
yunion-ci-robot
2019-09-25 17:42:28 +08:00
committed by GitHub
37 changed files with 2221 additions and 584 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func (self *ImageConvertTask) OnInit(ctx context.Context, obj db.IStandaloneMode
kwargs.Set("os_type", jsonutils.NewString(osType.Value))
}
notifyclient.SystemNotify(notify.NotifyPriorityNormal, notifyclient.IMAGE_ACTIVED, kwargs)
notifyclient.NotifyImportant(self.UserCred.GetUserId(), false, notifyclient.IMAGE_ACTIVED, kwargs)
notifyclient.NotifyImportant([]string{self.UserCred.GetUserId()}, false, notifyclient.IMAGE_ACTIVED, kwargs)
}
return nil, err
})