add context in the alert_notification (#41307)

This commit is contained in:
ying-jeanne
2021-11-05 09:41:24 +01:00
committed by GitHub
parent c19d628ab6
commit a404a311da
10 changed files with 146 additions and 144 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ func (n *notificationService) renderAndUploadImage(evalCtx *EvalContext, timeout
func (n *notificationService) getNeededNotifiers(orgID int64, notificationUids []string, evalContext *EvalContext) (notifierStateSlice, error) {
query := &models.GetAlertNotificationsWithUidToSendQuery{OrgId: orgID, Uids: notificationUids}
if err := bus.Dispatch(query); err != nil {
if err := bus.DispatchCtx(evalContext.Ctx, query); err != nil {
return nil, err
}