diff --git a/pkg/cloudcommon/notifyclient/notify.go b/pkg/cloudcommon/notifyclient/notify.go index 1a3fce5ceb..20575f8759 100644 --- a/pkg/cloudcommon/notifyclient/notify.go +++ b/pkg/cloudcommon/notifyclient/notify.go @@ -134,7 +134,7 @@ func NotifyRobot(robotIds []string, priority npk.TNotifyPriority, event string, // NotifyRobot will send messages via all robot contact type such as dingtalk-robot. func NotifyRobotWithCtx(ctx context.Context, robotIds []string, priority npk.TNotifyPriority, event string, data jsonutils.JSONObject) error { - rawNotify(context.Background(), sNotifyParams{ + rawNotify(ctx, sNotifyParams{ robots: robotIds, channel: npk.NotifyByRobot, priority: priority,