Documentation
¶
Overview ¶
Package parallel provides a parallel scheduler that will run work on a fixed number of workers. Events for the same repository will be processed sequentially, but events for different repositories can be processed concurrently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is a parallel scheduler that will run work on a fixed number of workers
func NewScheduler ¶
func NewScheduler(numWorkers int, ident string, logger *slog.Logger, handleEvent func(context.Context, *models.Event) error) *Scheduler
NewScheduler creates a new parallel scheduler with the given number of workers
Click to show internal directories.
Click to hide internal directories.