From d9a955beee394bc6e4100765ec5dd488a8b2a387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 20 May 2022 12:57:27 +0200 Subject: [PATCH] Worker: only call may-I-keep-running endpoint every 10 seconds For debugging it was nice to have this called every second, but for production use that's a bit too frequent. --- internal/worker/state_awake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/worker/state_awake.go b/internal/worker/state_awake.go index 0db625bc..d2a34db9 100644 --- a/internal/worker/state_awake.go +++ b/internal/worker/state_awake.go @@ -20,7 +20,7 @@ const ( durationFetchFailed = 10 * time.Second // ... if fetching failed somehow. durationTaskComplete = 2 * time.Second // ... when a task was completed. - mayKeepRunningPeriod = 1 * time.Second + mayKeepRunningPeriod = 10 * time.Second ) // Implement error interface for `api.MayKeepRunning` to indicate a task run was