increased waiting time befor sending email on PDQ unavailability to 60 seconds

This commit is contained in:
2026-03-10 17:45:58 +00:00
parent 48e2b6f568
commit 19cfbf185b
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -215,12 +215,12 @@ func (app *App) handleAvailabilityDebounced(isAvailable bool) {
log.Println("PDQ reported unavailable - starting 10s debounce timer")
timer := time.AfterFunc(5*time.Second, func() {
timer := time.AfterFunc(60*time.Second, func() {
mail.SendEmailOnError(
app.cfg.Hotel,
app.cfg.Kiosk,
title,
"ChipDNA PDQ unavailable for more than 5 seconds",
"ChipDNA PDQ unavailable for more than 60 seconds",
)
app.availabilityMu.Lock()