From 0166dc662337741de9ffd2dedb6063d269aa8331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wilczy=C5=84ski?= Date: Mon, 4 Nov 2024 21:02:41 +0100 Subject: [PATCH] Run mist-cleanup more often - every 15min instead of 2h --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 9e6bfca5..52c0b80d 100644 --- a/main.go +++ b/main.go @@ -331,8 +331,8 @@ func main() { // Start cron style apps to run periodically if cli.ShouldMistCleanup() { app := "mist-cleanup.sh" - // schedule mist-cleanup every 2hrs with a timeout of 15min - mistCleanup, err := middleware.NewShell(2*60*60*time.Second, 15*60*time.Second, app) + // schedule mist-cleanup every 15min with a timeout of 15min + mistCleanup, err := middleware.NewShell(15*60*time.Second, 15*60*time.Second-10, app) if err != nil { glog.Info("Failed to shell out:", app, err) }