Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PendingTasks (0.2 sec)

  1. cmd/bucket-lifecycle.go

    	mu      sync.RWMutex
    	workers atomic.Pointer[[]chan expiryOp]
    
    	ctx    context.Context
    	objAPI ObjectLayer
    
    	stats expiryStats
    }
    
    // PendingTasks returns the number of pending ILM expiry tasks.
    func (es *expiryState) PendingTasks() int {
    	w := es.workers.Load()
    	if w == nil || len(*w) == 0 {
    		return 0
    	}
    	var tasks int
    	for _, wrkr := range *w {
    		tasks += len(wrkr)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    		}
    		trMissedTasks := MetricV2{
    			Description: getTransitionMissedTasksMD(),
    		}
    		if globalExpiryState != nil {
    			expPendingTasks.Value = float64(globalExpiryState.PendingTasks())
    			expMissedTasks.Value = float64(globalExpiryState.stats.MissedTasks())
    			expMissedFreeVersions.Value = float64(globalExpiryState.stats.MissedFreeVersTasks())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
Back to top