Commit 19427b59 by bergquist

feat(alerting): do not enqueue paused rules

parent 04f417a4
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"time" "time"
"github.com/grafana/grafana/pkg/log" "github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/models"
) )
type SchedulerImpl struct { type SchedulerImpl struct {
...@@ -48,7 +49,7 @@ func (s *SchedulerImpl) Tick(tickTime time.Time, execQueue chan *Job) { ...@@ -48,7 +49,7 @@ func (s *SchedulerImpl) Tick(tickTime time.Time, execQueue chan *Job) {
now := tickTime.Unix() now := tickTime.Unix()
for _, job := range s.jobs { for _, job := range s.jobs {
if job.Running { if job.Running || job.Rule.State == models.AlertStatePaused {
continue continue
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment