mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
Merge pull request #3021 from Mjoycarry/feature/notify_grpc
Feature: Notify
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user