From f82e78eaebc75452085bb8450bf06022f31ec1de Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Tue, 12 Apr 2022 17:19:07 +0200 Subject: [PATCH] Comment out walltime check due to complications --- server.go | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/server.go b/server.go index c9a5ae2..148dd3c 100644 --- a/server.go +++ b/server.go @@ -13,7 +13,6 @@ import ( "net/url" "os" "os/signal" - "runtime" "runtime/debug" "strings" "sync" @@ -482,17 +481,17 @@ func main() { api.OngoingArchivings.Wait() }() - if programConfig.StopJobsExceedingWalltime != 0 { - go func() { - for range time.Tick(1 * time.Hour) { - err := jobRepo.StopJobsExceedingWalltimeBy(programConfig.StopJobsExceedingWalltime) - if err != nil { - log.Errorf("error while looking for jobs exceeding theire walltime: %s", err.Error()) - } - runtime.GC() - } - }() - } + // if programConfig.StopJobsExceedingWalltime != 0 { + // go func() { + // for range time.Tick(1 * time.Hour) { + // err := jobRepo.StopJobsExceedingWalltimeBy(programConfig.StopJobsExceedingWalltime) + // if err != nil { + // log.Errorf("error while looking for jobs exceeding theire walltime: %s", err.Error()) + // } + // runtime.GC() + // } + // }() + // } if os.Getenv("GOGC") == "" { debug.SetGCPercent(25)