Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for PENDING (0.19 sec)

  1. cmd/bucket-lifecycle.go

    type expiryState struct {
    	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)
Back to top