Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for updateAfter (0.21 sec)

  1. cmd/batch-handlers.go

    					stopFn(oi, nil)
    				}
    				ri.trackCurrentBucketObject(r.Target.Bucket, oi, success)
    				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 wait := globalBatchConfig.ReplicationWait(); wait > 0 {
    					time.Sleep(wait)
    				}
    			}()
    		}
    		wk.Wait()
    
    		ri.RetryAttempts = attempts
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 08 14:11:38 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  2. cmd/batch-expire.go

    				batchLogIf(ctx, ri.updateAfter(ctx, api, 10*time.Second, job))
    
    			case <-ctx.Done():
    				// persist in-memory state immediately before exiting due to context cancellation.
    				batchLogIf(ctx, ri.updateAfter(ctx, api, 0, job))
    				return
    
    			case <-saverQuitCh:
    				// persist in-memory state immediately to disk.
    				batchLogIf(ctx, ri.updateAfter(ctx, api, 0, job))
    				return
    			}
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  3. cmd/batch-rotate.go

    				ri.trackCurrentBucketObject(r.Bucket, result, success)
    				ri.RetryAttempts = 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)))
    				}
    			}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  4. 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()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 40.4K bytes
    - Viewed (1)
Back to top