Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addWorker (0.12 sec)

  1. cmd/background-heal-ops.go

    	// Run the background healer
    	for i := 0; i < globalBackgroundHealRoutine.workers; i++ {
    		go globalBackgroundHealRoutine.AddWorker(ctx, objAPI, bgSeq)
    	}
    
    	globalBackgroundHealState.LaunchNewHealSequence(bgSeq, objAPI)
    }
    
    // Wait for heal requests and process them
    func (h *healRoutine) AddWorker(ctx context.Context, objAPI ObjectLayer, bgSeq *healSequence) {
    	for {
    		select {
    		case task, ok := <-h.tasks:
    			if !ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. cmd/batch-handlers.go

    			continue
    		}
    		if err := j.queueJob(req); err != nil {
    			batchLogIf(ctx, err)
    			continue
    		}
    	}
    }
    
    // AddWorker adds a replication worker to the pool
    func (j *BatchJobPool) AddWorker() {
    	if j == nil {
    		return
    	}
    	for {
    		select {
    		case <-j.ctx.Done():
    			return
    		case job, ok := <-j.jobCh:
    			if !ok {
    				return
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    			}
    		case <-p.mrfWorkerKillCh:
    			return
    		}
    	}
    }
    
    // AddWorker adds a replication worker to the pool.
    // An optional pointer to a tracker that will be atomically
    // incremented when operations are running can be provided.
    func (p *ReplicationPool) AddWorker(input <-chan ReplicationWorkerOperation, opTracker *int32) {
    	for {
    		select {
    		case <-p.ctx.Done():
    			return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  4. internal/event/target/mqtt.go

    		SetUsername(args.User).
    		SetPassword(args.Password).
    		SetMaxReconnectInterval(args.MaxReconnectInterval).
    		SetKeepAlive(args.KeepAlive).
    		SetTLSConfig(&tls.Config{RootCAs: args.RootCAs}).
    		AddBroker(args.Broker.String())
    
    	target.client = mqtt.NewClient(options)
    
    	token := target.client.Connect()
    	ok := token.WaitTimeout(reconnectInterval)
    	if !ok {
    		return store.ErrNotConnected
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top