Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toDeleteJobMetrics (0.08 sec)

  1. cmd/batch-handlers.go

    			return
    		case <-t.C:
    			var toDeleteJobMetrics []string
    			m.RLock()
    			for id, metrics := range m.metrics {
    				if time.Since(metrics.LastUpdate) > oldJobsExpiration && (metrics.Complete || metrics.Failed) {
    					toDeleteJobMetrics = append(toDeleteJobMetrics, id)
    				}
    			}
    			m.RUnlock()
    			for _, jobID := range toDeleteJobMetrics {
    				m.delete(jobID)
    				j := BatchJobRequest{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
Back to top