Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ResizeWorkers (0.09 sec)

  1. cmd/batch-handlers.go

    						continue
    					}
    				}
    			}
    			j.canceler(job.ID, false)
    		case <-j.workerKillCh:
    			return
    		}
    	}
    }
    
    // ResizeWorkers sets replication workers pool to new size
    func (j *BatchJobPool) ResizeWorkers(n int) {
    	if j == nil {
    		return
    	}
    
    	j.mu.Lock()
    	defer j.mu.Unlock()
    
    	for j.workerSize < n {
    		j.workerSize++
    		go j.AddWorker()
    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