MCPcopy Create free account
hub / github.com/actions/actions-runner-controller / IsRunnerBusy

Method IsRunnerBusy

github/github.go:460–476  ·  view source on GitHub ↗
(ctx context.Context, enterprise, org, repo, name string)

Source from the content-addressed store, hash-verified

458}
459
460func (r *Client) IsRunnerBusy(ctx context.Context, enterprise, org, repo, name string) (bool, error) {
461 runners, err := r.ListRunners(ctx, enterprise, org, repo)
462 if err != nil {
463 return false, err
464 }
465
466 for _, runner := range runners {
467 if runner.GetName() == name {
468 if runner.GetStatus() == "offline" {
469 return runner.GetBusy(), &RunnerOffline{runnerName: name}
470 }
471 return runner.GetBusy(), nil
472 }
473 }
474
475 return false, &RunnerNotFound{runnerName: name}
476}

Callers

nothing calls this directly

Implementers 1

Clientcontrollers/actions.github.com/multicl

Calls 2

ListRunnersMethod · 0.95
GetNameMethod · 0.45

Tested by

no test coverage detected