Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for updateAfter (0.05 sec)

  1. cmd/batch-rotate.go

    				}
    				ri.trackCurrentBucketObject(r.Bucket, result, success, attempts)
    				globalBatchJobsMetrics.save(job.ID, ri)
    				// persist in-memory state to disk after every 10secs.
    				batchLogIf(ctx, ri.updateAfter(ctx, api, 10*time.Second, job))
    				if success {
    					break
    				}
    				if delay > 0 {
    					time.Sleep(delay + time.Duration(rnd.Float64()*float64(delay)))
    				}
    			}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-decom.go

    	}
    	if failed {
    		pd.ItemsDecommissionFailed++
    		pd.BytesFailed += size
    	} else {
    		pd.ItemsDecommissioned++
    		pd.BytesDone += size
    	}
    	p.Pools[idx].Decommission = pd
    }
    
    func (p *poolMeta) updateAfter(ctx context.Context, idx int, pools []*erasureSets, duration time.Duration) (bool, error) {
    	if p.Pools[idx].Decommission == nil {
    		return false, errInvalidArgument
    	}
    	now := UTCNow()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. cmd/batch-expire.go

    			}
    
    			if quit {
    				// save immediately if we are quitting
    				after = 0
    			}
    
    			ctx, cancel := context.WithTimeout(GlobalContext, 30*time.Second) // independent context
    			batchLogIf(ctx, ri.updateAfter(ctx, api, after, job))
    			cancel()
    		}
    	}()
    
    	expireCh := make(chan []expireObjInfo, workerSize)
    	expireDoneCh := make(chan struct{})
    	go func() {
    		defer close(expireDoneCh)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top