We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5e5670 commit 709f306Copy full SHA for 709f306
jobrunner/internal/incidentpoller/incidentpoller.go
@@ -68,6 +68,13 @@ func (p *IncidentPoller) pollInner() error {
68
if p.slackWebhookUrl == "" {
69
continue
70
}
71
+
72
+ // We only want to notify about incidents that have started in the last hour
73
+ // Otherwise, we will be sending notifications for incidents that have already been resolved
74
+ if incident.StartTime.Before(time.Now().Add(-1 * time.Hour)) {
75
+ continue
76
+ }
77
78
if incident.Impact == "maintenance" {
79
80
0 commit comments