mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 09:35:07 +01:00 
			
		
		
		
	Comment out walltime check due to complications
This commit is contained in:
		
							
								
								
									
										23
									
								
								server.go
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								server.go
									
									
									
									
									
								
							@@ -13,7 +13,6 @@ import (
 | 
				
			|||||||
	"net/url"
 | 
						"net/url"
 | 
				
			||||||
	"os"
 | 
						"os"
 | 
				
			||||||
	"os/signal"
 | 
						"os/signal"
 | 
				
			||||||
	"runtime"
 | 
					 | 
				
			||||||
	"runtime/debug"
 | 
						"runtime/debug"
 | 
				
			||||||
	"strings"
 | 
						"strings"
 | 
				
			||||||
	"sync"
 | 
						"sync"
 | 
				
			||||||
@@ -482,17 +481,17 @@ func main() {
 | 
				
			|||||||
		api.OngoingArchivings.Wait()
 | 
							api.OngoingArchivings.Wait()
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if programConfig.StopJobsExceedingWalltime != 0 {
 | 
						// 	if programConfig.StopJobsExceedingWalltime != 0 {
 | 
				
			||||||
		go func() {
 | 
						// 		go func() {
 | 
				
			||||||
			for range time.Tick(1 * time.Hour) {
 | 
						// 			for range time.Tick(1 * time.Hour) {
 | 
				
			||||||
				err := jobRepo.StopJobsExceedingWalltimeBy(programConfig.StopJobsExceedingWalltime)
 | 
						// 				err := jobRepo.StopJobsExceedingWalltimeBy(programConfig.StopJobsExceedingWalltime)
 | 
				
			||||||
				if err != nil {
 | 
						// 				if err != nil {
 | 
				
			||||||
					log.Errorf("error while looking for jobs exceeding theire walltime: %s", err.Error())
 | 
						// 					log.Errorf("error while looking for jobs exceeding theire walltime: %s", err.Error())
 | 
				
			||||||
				}
 | 
						// 				}
 | 
				
			||||||
				runtime.GC()
 | 
						// 				runtime.GC()
 | 
				
			||||||
			}
 | 
						// 			}
 | 
				
			||||||
		}()
 | 
						// 		}()
 | 
				
			||||||
	}
 | 
						// 	}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if os.Getenv("GOGC") == "" {
 | 
						if os.Getenv("GOGC") == "" {
 | 
				
			||||||
		debug.SetGCPercent(25)
 | 
							debug.SetGCPercent(25)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user