Merge branch 'pause_alert_rules'

closes #6135
This commit is contained in:
bergquist
2016-10-11 10:54:58 +02:00
8 changed files with 78 additions and 28 deletions

View File

@@ -5,6 +5,7 @@ import (
"time"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/models"
)
type SchedulerImpl struct {
@@ -48,7 +49,7 @@ func (s *SchedulerImpl) Tick(tickTime time.Time, execQueue chan *Job) {
now := tickTime.Unix()
for _, job := range s.jobs {
if job.Running {
if job.Running || job.Rule.State == models.AlertStatePaused {
continue
}