MCPcopy Index your code
hub / github.com/rilldata/rill / Close

Method Close

runtime/runtime.go:108–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108func (r *Runtime) Close() error {
109 ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
110 defer cancel()
111 if r.configReloader != nil {
112 r.configReloader.close()
113 }
114 r.registryCache.close(ctx)
115 err1 := r.queryCache.close()
116 err2 := r.connCache.Close(ctx) // Also closes metastore // TODO: Propagate ctx cancellation
117 return errors.Join(err1, err2)
118}
119
120func (r *Runtime) ResolveSecurity(ctx context.Context, instanceID string, claims *SecurityClaims, res *runtimev1.Resource) (*ResolvedSecurity, error) {
121 inst, err := r.Instance(ctx, instanceID)

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected