Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  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()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 63.5K bytes
    - Click Count (1)
Back to Top