Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAX_ERROR_COUNT = 10 LEASE_TIME = 3 * time.Minute PEAK_JOB_ITEMS = 5 // number of items to fetch from the queue to see which one to select QUEUE_UPDATE_PERIOD = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkerInfo ¶
type WorkerInfo struct {
// contains filtered or unexported fields
}
type WorkerPool ¶
func NewWorkerPool ¶
func NewWorkerPool(maxWorkers uint, queue *metadata.QueueSubspace, txMgr *transaction.Manager, tenantMgr *metadata.TenantManager, searchStore search.Store, workerSleepTime time.Duration, poolSleepTime time.Duration) *WorkerPool
func (*WorkerPool) Loop ¶
func (pool *WorkerPool) Loop()
func (*WorkerPool) Start ¶
func (pool *WorkerPool) Start() error
func (*WorkerPool) Stop ¶
func (pool *WorkerPool) Stop()
Click to show internal directories.
Click to hide internal directories.