notifications: make journaling ctx aware

This commit is contained in:
bergquist
2018-06-15 15:30:17 +02:00
parent 7632983c62
commit f4b089d551
4 changed files with 66 additions and 53 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func (handler *DefaultResultHandler) Handle(evalContext *EvalContext) error {
NotifierId: notifierId,
OrgId: evalContext.Rule.OrgId,
}
if err := bus.Dispatch(cmd); err != nil {
if err := bus.DispatchCtx(evalContext.Ctx, cmd); err != nil {
handler.log.Error("Failed to clean up old notification records", "notifier", notifierId, "alert", evalContext.Rule.Id, "Error", err)
}
}