Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reserver ¶
type Reserver struct {
// contains filtered or unexported fields
}
Reserver is a JobHandler. It mark those bk jobs as reserved and then pass them to the next handler.
In the future, we may: - use reserver as an actor to centralize posting reservation updates. - use reserver as a periodic worker to keep reserveration expiration up-to-date.
func New ¶
func New(logger *zap.Logger, agentClient *api.AgentClient, nextHandler model.ManyJobHandler, enabled bool) *Reserver
func (*Reserver) HandleMany ¶
Rerserve a bunch of jobs and relay the successful reserved jobs to the next handler.
Click to show internal directories.
Click to hide internal directories.