Documentation ¶
Index ¶
- type AssignedQueueItem
- type LeaseManager
- type ListActiveWorkersResult
- type QueueResults
- type Queuer
- type Scheduler
- type SchedulingPool
- func (p *SchedulingPool) GetResultsCh() chan *QueueResults
- func (p *SchedulingPool) Queue(ctx context.Context, tenantId string, queueName string)
- func (p *SchedulingPool) RefreshAll(ctx context.Context, tenantId string)
- func (p *SchedulingPool) Replenish(ctx context.Context, tenantId string)
- func (p *SchedulingPool) SetTenants(tenants []*dbsqlc.Tenant)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignedQueueItem ¶
type LeaseManager ¶
type LeaseManager struct {
// contains filtered or unexported fields
}
LeaseManager is responsible for leases on multiple queues and multiplexing queue results to callers. It is still tenant-scoped.
type ListActiveWorkersResult ¶
type ListActiveWorkersResult struct { ID pgtype.UUID Labels []*dbsqlc.ListManyWorkerLabelsRow }
type QueueResults ¶
type QueueResults struct { TenantId pgtype.UUID Assigned []*AssignedQueueItem // A list of step run ids that were not assigned because they reached the scheduling // timeout SchedulingTimedOut []string }
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is responsible for scheduling steps to workers as efficiently as possible. This is tenant-scoped, so each tenant will have its own scheduler.
type SchedulingPool ¶
type SchedulingPool struct {
// contains filtered or unexported fields
}
SchedulingPool is responsible for managing a pool of tenantManagers.
func NewSchedulingPool ¶
func (*SchedulingPool) GetResultsCh ¶
func (p *SchedulingPool) GetResultsCh() chan *QueueResults
func (*SchedulingPool) Queue ¶
func (p *SchedulingPool) Queue(ctx context.Context, tenantId string, queueName string)
func (*SchedulingPool) RefreshAll ¶
func (p *SchedulingPool) RefreshAll(ctx context.Context, tenantId string)
func (*SchedulingPool) Replenish ¶
func (p *SchedulingPool) Replenish(ctx context.Context, tenantId string)
func (*SchedulingPool) SetTenants ¶
func (p *SchedulingPool) SetTenants(tenants []*dbsqlc.Tenant)
Click to show internal directories.
Click to hide internal directories.