From aa193f7871c7c769d235fad2709b7a1017053cbe Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Thu, 10 Jun 2021 21:18:59 -0400 Subject: Renotify at the renotify interval, not the check interval. --- cmd/main/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/main/main.go b/cmd/main/main.go index 531b0ab..98b0638 100644 --- a/cmd/main/main.go +++ b/cmd/main/main.go @@ -65,6 +65,9 @@ func jobNotifyDedup(conf *Config, prevJobs, newJobs map[string]*jobResponse) { if time.Now().After( oldresp.Time.Add(time.Duration(conf.RenotifyInterval) * time.Second)) { + // Reset the time + newJobs[id] = resp + buf.Write([]byte( "still active --> " + resp.Message, )) -- cgit v1.2.3