- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for purgeJobMetrics (0.1 sec)
-
cmd/server-main.go
globalBatchJobsMetrics = batchJobMetrics{ metrics: make(map[string]*batchJobInfo), } go globalBatchJobsMetrics.init(GlobalContext, newObject) go globalBatchJobsMetrics.purgeJobMetrics() }) // Prints the formatted startup message, if err is not nil then it prints additional information as well. printStartupMessage(getAPIEndpoints(), err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 21:50:11 UTC 2024 - 35.2K bytes - Viewed (1) -
cmd/batch-handlers.go
metrics.Jobs[id] = job.metric() } return metrics } // keep job metrics for some time after the job is completed // in-case some one wants to look at the older results. func (m *batchJobMetrics) purgeJobMetrics() { t := time.NewTicker(6 * time.Hour) defer t.Stop() for { select { case <-GlobalContext.Done(): return case <-t.C: var toDeleteJobMetrics []string m.RLock()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 18 15:32:09 UTC 2024 - 62.2K bytes - Viewed (0)