Skip to content

Commit

Permalink
BEDS-306: monitoring: shorter minimum expiry delta of status reports
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-bitfly committed Sep 12, 2024
1 parent e1f86fb commit 402b034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/pkg/monitoring/services/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func NewStatusReport(id string, timeout time.Duration, check_interval time.Durat
if timeout != constants.Default {
timeouts_at = now.Add(timeout)
}
expires_at := timeouts_at.Add(5 * time.Minute)
if check_interval >= 5*time.Minute {
expires_at := timeouts_at.Add(1 * time.Minute)
if check_interval >= 1*time.Minute {
expires_at = timeouts_at.Add(check_interval)
}
log.TraceWithFields(log.Fields{
Expand Down

0 comments on commit 402b034

Please sign in to comment.