INNER CODE UNIT · Go

func

evryfs/github-actions-runner-operator · controllers/podrunner_types.go:52

func (r podRunnerPairList) getBusyRunners() []*github.Runner {
	return lo.Filter(r.runners, func(runner *github.Runner, _ int) bool {
		return runner.GetBusy()
	})
}

func (r podRunnerPairList) numBusy() int {
	return len(r.getBusyRunners())
}

func (r podRunnerPairList) allBusy() bool {
	return r.numBusy() == r.numRunners()
}

func (r podRunnerPairList) numPods() int {
	return len(r.podList.Items)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…