Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for jobCh (0.02 sec)

  1. cmd/batch-handlers.go

    	j.jmu.Lock()
    	j.jobCancelers[req.ID] = jcancel
    	j.jmu.Unlock()
    	req.ctx = jctx
    
    	select {
    	case <-j.ctx.Done():
    		j.once.Do(func() {
    			xioutil.SafeClose(j.jobCh)
    		})
    	case j.jobCh <- req:
    	default:
    		return fmt.Errorf("batch job queue is currently full please try again later %#v", req)
    	}
    	return nil
    }
    
    // delete canceler from the map, cancel job if requested
    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