Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Batcher] Reset Timer instead of stopping function #429

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions disperser/cmd/batcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ func heartbeatMonitor(filePath string, maxStallDuration time.Duration) {
stallTimer.Reset(maxStallDuration) // Reset timer on new heartbeat

case <-stallTimer.C:
log.Println("No heartbeat received within max stall duration, stopping health probe")
return
// Instead of stopping the function, log a warning
log.Println("Warning: No heartbeat received within max stall duration.")
// Reset the timer to continue monitoring
stallTimer.Reset(maxStallDuration)
}
}
}
Loading