MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Statusz

Method Statusz

app/controlplane/internal/service/status.go:44–51  ·  view source on GitHub ↗

Only on readiness probes we check this service external dependencies

(ctx context.Context, r *pb.StatuszRequest)

Source from the content-addressed store, hash-verified

42
43// Only on readiness probes we check this service external dependencies
44func (s *StatusService) Statusz(ctx context.Context, r *pb.StatuszRequest) (*pb.StatuszResponse, error) {
45 if r.Readiness {
46 if ok, err := s.casClient.IsReady(ctx); err != nil || !ok {
47 return nil, errors.ServiceUnavailable("CAS_NOT_READY", err.Error())
48 }
49 }
50 return &pb.StatuszResponse{}, nil
51}
52
53func (s *StatusService) Infoz(_ context.Context, _ *pb.InfozRequest) (*pb.InfozResponse, error) {
54 return &pb.InfozResponse{

Callers

nothing calls this directly

Calls 2

IsReadyMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected